From 95819490bb9002edff07a3686f80b918d6daa7ca Mon Sep 17 00:00:00 2001 From: rblazek Date: Tue, 5 Dec 2006 18:59:06 +0000 Subject: [PATCH] set mScale to 1 because Qt4.2 seems to be using pen widthF git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6189 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/composer/qgscomposition.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/composer/qgscomposition.cpp b/src/composer/qgscomposition.cpp index 66ad92b1aa2..0c9f773fb72 100644 --- a/src/composer/qgscomposition.cpp +++ b/src/composer/qgscomposition.cpp @@ -68,11 +68,14 @@ QgsComposition::QgsComposition( QgsComposer *c, int id ) // Attention: Qt4.1 writes line width to PS/PDF still as integer // (using QPen->width() to get the value) so we MUST use mScale > 1 + + // Note: It seems that Qt4.2 is using widthF so that we can set mScale to 1 + // and hopefuly we can remove mScale completely // Note: scale 10 make it inacceptable slow: QgsComposerMap 900x900mm on paper 1500x1000 // cannot be smoothly moved even if mPreviewMode == Rectangle and no zoom in // scale 2 results in minimum line width 0.5 mmm which is too much - mScale = 5; + mScale = 1; // Add paper sizes and set default. mPapers.push_back ( QgsCompositionPaper( tr("Custom"), 0, 0, 1 ) );