aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2002-11-12 16:13:24 (GMT)
committerrathnor <rathnor>2002-11-12 16:13:24 (GMT)
commita92136b4e8ece247ed5fda363722f7f2b984fbcf (patch)
tree158f1ddacf524b7c4f3d6d5f54dfb2dfe01abecc /src/Tab.cc
parent64c9a446ba7c61775f2cb6fc313001ac63c4231d (diff)
downloadfluxbox-a92136b4e8ece247ed5fda363722f7f2b984fbcf.zip
fluxbox-a92136b4e8ece247ed5fda363722f7f2b984fbcf.tar.bz2
for loop waited for negative value on unsigned type. Fixed to check for
zero in break case.
Diffstat (limited to 'src/Tab.cc')
-rw-r--r--src/Tab.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Tab.cc b/src/Tab.cc
index acf6ae5..2cc3c84 100644
--- a/src/Tab.cc
+++ b/src/Tab.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Tab.cc,v 1.37 2002/10/29 16:03:15 fluxgen Exp $ 22// $Id: Tab.cc,v 1.38 2002/11/12 16:13:24 rathnor Exp $
23 23
24#include "Tab.hh" 24#include "Tab.hh"
25 25
@@ -389,7 +389,7 @@ void Tab::draw(bool pressed) const {
389 l = winstyle->tab.font.textWidth(m_win->getTitle().c_str(), dlen); 389 l = winstyle->tab.font.textWidth(m_win->getTitle().c_str(), dlen);
390 l += (dx * 4); 390 l += (dx * 4);
391 391
392 if (l < m_size_w) 392 if (l < m_size_w || dlen == 0)
393 break; 393 break;
394 } 394 }
395 } 395 }