r19057 by fschmid - Fixed Bug #12239: Double clicking on Scrapbook items crashes Scribus if no document is opened
scribus-commit
scribus-commit at lists.scribus.net
Sun Apr 20 18:39:24 UTC 2014
Author: fschmid
Date: Sun Apr 20 18:39:24 2014
New Revision: 19057
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19057
Log:
Fixed Bug #12239: Double clicking on Scrapbook items crashes Scribus if no document is opened
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19057&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sun Apr 20 18:39:24 2014
@@ -3433,6 +3433,8 @@
void ScribusMainWindow::pasteFromScrapbook(QString fn)
{
+ if (!HaveDoc)
+ return;
view->dragX = 0;
view->dragY = 0;
doPasteRecent(scrapbookPalette->activeBView->objectMap[fn].Data);
More information about the scribus-commit
mailing list