# HG changeset patch # User Santeri Piippo # Date 1372897791 -10800 # Node ID 31c6e53e1e4e1ecacff553d3caa3a0e25175a97e # Parent 4200e1c89e971433fc6063f35002967a3223d524 fixed: when a new message line was added, the viewport wasn't updated diff -r 4200e1c89e97 -r 31c6e53e1e4e src/gldraw.cpp --- a/src/gldraw.cpp Thu Jul 04 03:08:34 2013 +0300 +++ b/src/gldraw.cpp Thu Jul 04 03:29:51 2013 +0300 @@ -649,13 +649,12 @@ // Message log if( msglog() ) { - MessageManager* m = msglog(); int y = 0; const int margin = 2; QColor col = Qt::black; paint.setPen( QPen() ); - for( const MessageManager::Line& line : *m ) + for( const MessageManager::Line& line : *msglog()) { col.setAlphaF( line.alpha ); paint.setPen( QPen( col )); diff -r 4200e1c89e97 -r 31c6e53e1e4e src/gui.cpp --- a/src/gui.cpp Thu Jul 04 03:08:34 2013 +0300 +++ b/src/gui.cpp Thu Jul 04 03:29:51 2013 +0300 @@ -1022,6 +1022,7 @@ hidetimer->setSingleShot (true); hidetimer->start (1500); m_primLoaderBar->setFormat( tr( "Done" )); + log( tr( "Primitives scanned: %1 primitives listed" ), m_primLoaderBar->value() ); } // ============================================================================= diff -r 4200e1c89e97 -r 31c6e53e1e4e src/msglog.cpp --- a/src/msglog.cpp Thu Jul 04 03:08:34 2013 +0300 +++ b/src/msglog.cpp Thu Jul 04 03:29:51 2013 +0300 @@ -71,9 +71,9 @@ m_lines << Line( line ); - // Force a tick, we added a new message and it should - // show up immediately. - tick(); + // Update the renderer view + if( renderer() ) + renderer()->update(); } MessageManager& MessageManager::operator<<( str line ) @@ -96,7 +96,7 @@ changed |= lineChanged; } - if( changed ) + if( changed && renderer() ) renderer()->update(); }