r17865 by jghali - #11159: text overflow indicator exported in bitmap

scribus-commit scribus-commit at lists.scribus.net
Fri Nov 9 12:30:50 UTC 2012


Author: jghali
Date: Fri Nov  9 12:30:50 2012
New Revision: 17865

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17865
Log:
#11159: text overflow indicator exported in bitmap

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17865&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Fri Nov  9 12:30:50 2012
@@ -2858,8 +2858,10 @@
 			Doc->minCanvasCoordinate = FPoint(0, 0);
 			bool oldFramesShown  = Doc->guidesPrefs().framesShown;
 			bool oldShowControls = Doc->guidesPrefs().showControls;
+			bool oldDrawAsPreview = Doc->drawAsPreview;
 			Doc->guidesPrefs().framesShown = false;
 			Doc->guidesPrefs().showControls = false;
+			Doc->drawAsPreview = true;
 			m_canvas->setScale(sc);
 			m_canvas->m_viewMode.previewMode = true;
 			m_canvas->m_viewMode.forceRedraw = true;
@@ -2968,13 +2970,14 @@
 				}
 			}
 
+			Doc->drawAsPreview = oldDrawAsPreview;
 			Doc->guidesPrefs().framesShown  = oldFramesShown;
 			Doc->guidesPrefs().showControls = oldShowControls;
 			m_canvas->setScale(oldScale);
 			Doc->setMasterPageMode(mMode);
 			Doc->setCurrentPage(act);
 			Doc->setLoading(false);
-			m_canvas->m_viewMode.previewMode = false;
+			m_canvas->m_viewMode.previewMode = Doc->drawAsPreview;
 			m_canvas->m_viewMode.forceRedraw = false;
 			Doc->minCanvasCoordinate = FPoint(cx, cy);
 		}




More information about the scribus-commit mailing list