r17002 by fschmid - Fixed Bug 9570: "drag and drop to Scrapbook no longer works"

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 21 17:44:09 UTC 2011


Author: fschmid
Date: Mon Nov 21 17:44:09 2011
New Revision: 17002

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17002
Log:
Fixed Bug 9570: "drag and drop to Scrapbook no longer works"

Modified:
    branches/Version135/Scribus/scribus/scrapbookpalette.cpp

Modified: branches/Version135/Scribus/scribus/scrapbookpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17002&path=/branches/Version135/Scribus/scribus/scrapbookpalette.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/scrapbookpalette.cpp (original)
+++ branches/Version135/Scribus/scribus/scrapbookpalette.cpp Mon Nov 21 17:44:09 2011
@@ -134,7 +134,8 @@
 			return;
 		QString nam, tmp = "";
 		QString text = e->mimeData()->text();
-		if (text.startsWith("<SCRIBUSELEM"))
+		int startElemPos = text.left(512).indexOf("<SCRIBUSELEM");
+		if (startElemPos >= 0)
 			emit objDropped(text);
 	}
 	else




More information about the scribus-commit mailing list