From a92136b4e8ece247ed5fda363722f7f2b984fbcf Mon Sep 17 00:00:00 2001 From: rathnor Date: Tue, 12 Nov 2002 16:13:24 +0000 Subject: for loop waited for negative value on unsigned type. Fixed to check for zero in break case. --- src/Tab.cc | 4 ++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Tab.cc,v 1.37 2002/10/29 16:03:15 fluxgen Exp $ +// $Id: Tab.cc,v 1.38 2002/11/12 16:13:24 rathnor Exp $ #include "Tab.hh" @@ -389,7 +389,7 @@ void Tab::draw(bool pressed) const { l = winstyle->tab.font.textWidth(m_win->getTitle().c_str(), dlen); l += (dx * 4); - if (l < m_size_w) + if (l < m_size_w || dlen == 0) break; } } -- cgit v0.11.2