r20631 by fschmid -

scribus-commit scribus-commit at lists.scribus.net
Thu Dec 24 10:05:30 UTC 2015


Author: fschmid
Date: Thu Dec 24 10:05:30 2015
New Revision: 20631

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20631
Log:
Fixed Bug #13607: Highlighted text remains highlighted when "Saved as Image"

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20631&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Thu Dec 24 10:05:30 2015
@@ -2689,12 +2689,12 @@
 	int cliph = qRound(Doc->DocPages.at(Nr)->height() * sc);
 	if ((clipw <=0) || (cliph <= 0))
 		return im;
-
 	im = QImage(clipw, cliph, QImage::Format_ARGB32_Premultiplied);
 	if (im.isNull())
 		return im;
-
 	im.fill( qRgba(0, 0, 0, 0) );
+	int oldAppMode = Doc->appMode;
+	requestMode(modeNormal);
 	double oldScale = m_canvas->scale();
 	double cx = Doc->minCanvasCoordinate.x();
 	double cy = Doc->minCanvasCoordinate.y();
@@ -2836,7 +2836,7 @@
 	m_canvas->setPreviewMode(Doc->drawAsPreview);
 	m_canvas->setForcedRedraw(false);
 	Doc->minCanvasCoordinate = FPoint(cx, cy);
-
+	requestMode(oldAppMode);
 	return im;
 }
 #if 0




More information about the scribus-commit mailing list