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:
Michael Lotz 2010-12-24 02:08:54 +00:00
parent 95e95fee39
commit 2e3c20430a

View File

@ -481,8 +481,6 @@ DefaultDecorator::_DoLayout()
if (hasTab) {
// make sure fTabOffset is within limits and apply it to
// the fTabRect
if (fTabOffset < 0)
fTabOffset = 0;
if (fTabLocation != 0.0
&& fTabOffset > (fRightBorder.right - fLeftBorder.left
- fTabRect.Width()))