diff options
author | rathnor <rathnor> | 2002-11-12 16:13:24 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2002-11-12 16:13:24 (GMT) |
commit | a92136b4e8ece247ed5fda363722f7f2b984fbcf (patch) | |
tree | 158f1ddacf524b7c4f3d6d5f54dfb2dfe01abecc /src | |
parent | 64c9a446ba7c61775f2cb6fc313001ac63c4231d (diff) | |
download | fluxbox_lack-a92136b4e8ece247ed5fda363722f7f2b984fbcf.zip fluxbox_lack-a92136b4e8ece247ed5fda363722f7f2b984fbcf.tar.bz2 |
for loop waited for negative value on unsigned type. Fixed to check for
zero in break case.
Diffstat (limited to 'src')
-rw-r--r-- | src/Tab.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |