CID 4091: fTabOffset is unsigned so the < 0 comparison makes no sense.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -481,8 +481,6 @@ DefaultDecorator::_DoLayout()
|
|||||||
if (hasTab) {
|
if (hasTab) {
|
||||||
// make sure fTabOffset is within limits and apply it to
|
// make sure fTabOffset is within limits and apply it to
|
||||||
// the fTabRect
|
// the fTabRect
|
||||||
if (fTabOffset < 0)
|
|
||||||
fTabOffset = 0;
|
|
||||||
if (fTabLocation != 0.0
|
if (fTabLocation != 0.0
|
||||||
&& fTabOffset > (fRightBorder.right - fLeftBorder.left
|
&& fTabOffset > (fRightBorder.right - fLeftBorder.left
|
||||||
- fTabRect.Width()))
|
- fTabRect.Width()))
|
||||||
|
|||||||
Reference in New Issue
Block a user