From 2e3c20430aab7800d797e3e19e54939bf4ca3c1f Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 24 Dec 2010 02:08:54 +0000 Subject: [PATCH] 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 --- src/servers/app/DefaultDecorator.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index 22d28bfd62..d0eccfb46a 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -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()))