kdegraphics/kview canvas.cpp,1.24,1.25 Author: mkretz Wed Jan 31 21:50:40 UTC 2001 In directory cvs.kde.org:/tmp/cvs-serv20940 Modified Files: canvas.cpp Log Message: Fixes stupid bug: loading image when the other one was scrolled resulted in the new one not being scrollable Fixed now. --- canvas.cpp 2000/12/30 13:12:59 1.24 +++ canvas.cpp 2001/01/31 21:46:44 @@ -104,6 +104,10 @@ int KImageCanvas::load( const QString & delete _orig; // delete old buffered image _orig = 0; + //remove the contents + removeChild( _client ); + + //put the new image into the _client _client->move( 0, 0 ); _originalSize = size(); if ( max ) { @@ -111,6 +115,9 @@ int KImageCanvas::load( const QString & } _client->setImagePix( newImage ); _client->show(); + + //and readd the contents again + addChild( _client ); updateScrollBars();