r22184 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 6 12:21:59 UTC 2017


Author: jghali
Date: Fri Oct  6 12:21:59 2017
New Revision: 22184

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22184
Log:
#14994: additional fix for case where default resolution is not 72 dpi

Modified:
    trunk/Scribus/scribus/pageitem_latexframe.cpp

Modified: trunk/Scribus/scribus/pageitem_latexframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22184&path=/trunk/Scribus/scribus/pageitem_latexframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_latexframe.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_latexframe.cpp	Fri Oct  6 12:21:59 2017
@@ -70,9 +70,12 @@
 	delete tempfile;
 	Q_ASSERT(!tempFileBase.isEmpty());
 	
+	m_dpi = 0;
 	m_lastWidth = m_lastHeight = 0;
 	m_lastDpi = realDpi();
-	m_dpi = 0;
+
+	m_imageXScale *= (72.0 / realDpi());
+	m_imageYScale *= (72.0 / realDpi());
 }
 
 PageItem_LatexFrame::~PageItem_LatexFrame()
@@ -355,7 +358,7 @@
 	scaleY = m_imageYScale * lDpi;
 	offsetX = m_imageXOffset * m_imageXScale;
 	offsetY = m_imageYOffset * m_imageYScale;
-	realW = m_width - m_imageXOffset / lDpi;
+	realW = m_width  - m_imageXOffset / lDpi;
 	realH = m_height - m_imageYOffset / lDpi;
 	if (!tmp.contains("$scribus_noprepost$") && m_usePreamble) {
 		tmp = config->preamble() + tmp + config->postamble();




More information about the scribus-commit mailing list