for loop waited for negative value on unsigned type. Fixed to check for zero in break case.
rathnor rathnor
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/Tab.cc
→
src/Tab.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ for (; dlen >= 0; dlen--) {
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; } }