Skip to content
Permalink
Browse files

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
  • Loading branch information
rblazek
rblazek committed Dec 5, 2006
1 parent 65117c3 commit 95819490bb9002edff07a3686f80b918d6daa7ca
Showing with 4 additions and 1 deletion.
  1. +4 −1 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 ) );

0 comments on commit 9581949

Please sign in to comment.
You can’t perform that action at this time.