r17756 by jghali - fix crash when importing multiple images

scribus-commit scribus-commit at lists.scribus.net
Sat Aug 11 10:41:25 UTC 2012


Author: jghali
Date: Sat Aug 11 10:41:24 2012
New Revision: 17756

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17756
Log:
fix crash when importing multiple images

Modified:
    trunk/Scribus/scribus/canvasmode_imageimport.cpp

Modified: trunk/Scribus/scribus/canvasmode_imageimport.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17756&path=/trunk/Scribus/scribus/canvasmode_imageimport.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_imageimport.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_imageimport.cpp Sat Aug 11 10:41:24 2012
@@ -83,11 +83,9 @@
 		tipText = "<p align=\"center\"><img src=\"data:image/png;base64," + QString(ba) + "\"></p>";
 	}
 	else
-	{
-		p.end();
 		tipText = "<p align=\"center\">" + name.right(name.lastIndexOf("/")) + "</p>";
-	}
 	QToolTip::showText(QPoint(Mx,My), tipText, qApp->activeWindow());
+	p.end();
 }
 
 void CanvasMode_ImageImport::drawControls(QPainter* p)




More information about the scribus-commit mailing list