Commit 43f920d3 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink

don't try to use two active QPainters on the same widget at the same time. A...

don't try to use two active QPainters on the same widget at the same time. A better fix would probably be to change layoutTabs to not even need a QPainter to get a QFontMetrics instance, but at least now I can start kspread again without crashing.

svn path=/trunk/koffice/; revision=777452
parent d6b154e4
......@@ -665,6 +665,9 @@ void KoTabBar::paintEvent( QPaintEvent* )
return;
}
d->layoutTabs();
d->updateButtons();
QPainter painter(this);
if( !d->reverseLayout )
painter.translate( d->offset, 0 );
......@@ -672,9 +675,6 @@ void KoTabBar::paintEvent( QPaintEvent* )
if( !d->reverseLayout )
painter.translate( 5, 0 );
d->layoutTabs();
d->updateButtons();
// draw first all non-active, visible tabs
for( int c = d->tabRects.count()-1; c>=0; c-- )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment