From 996a772e6401c6347105a03835d4743ade61f013 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 22 Mar 2006 13:58:14 +0000 Subject: [PATCH] PAL10951 - text from one item column may overlap with next --- src/ObjBrowser/OB_ListItem.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ObjBrowser/OB_ListItem.cxx b/src/ObjBrowser/OB_ListItem.cxx index 49ad75741..95b1a220f 100755 --- a/src/ObjBrowser/OB_ListItem.cxx +++ b/src/ObjBrowser/OB_ListItem.cxx @@ -182,7 +182,7 @@ void OB_ListItem::paintCell( QPainter* p, const QColorGroup& cg, int c, int w, i if ( listView() && !listView()->allColumnsShowFocus() ) W = width( p->fontMetrics(), listView(), c ); - QListViewItem::paintCell( p, col_group, c, W, align ); + QListViewItem::paintCell( p, col_group, c, min( W, w ), align ); } int OB_ListItem::RTTI() @@ -278,7 +278,7 @@ void OB_CheckListItem::paintCell( QPainter* p, const QColorGroup& cg, int c, int if ( listView() && !listView()->allColumnsShowFocus() ) W = width( p->fontMetrics(), listView(), c ); - QCheckListItem::paintCell( p, col_group, c, W, align ); + QCheckListItem::paintCell( p, col_group, c, min( W, w ), align ); } int OB_CheckListItem::RTTI() -- 2.39.2