Skip to content

Commit a7c00ed

Browse files
author
rblazek
committedDec 5, 2006
set mScale to 1 because Qt4.2 seems to be using pen widthF
git-svn-id: http://svn.osgeo.org/qgis/trunk@6189 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 18eedc1 commit a7c00ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/composer/qgscomposition.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,14 @@ QgsComposition::QgsComposition( QgsComposer *c, int id )
6868

6969
// Attention: Qt4.1 writes line width to PS/PDF still as integer
7070
// (using QPen->width() to get the value) so we MUST use mScale > 1
71+
72+
// Note: It seems that Qt4.2 is using widthF so that we can set mScale to 1
73+
// and hopefuly we can remove mScale completely
7174

7275
// Note: scale 10 make it inacceptable slow: QgsComposerMap 900x900mm on paper 1500x1000
7376
// cannot be smoothly moved even if mPreviewMode == Rectangle and no zoom in
7477
// scale 2 results in minimum line width 0.5 mmm which is too much
75-
mScale = 5;
78+
mScale = 1;
7679

7780
// Add paper sizes and set default.
7881
mPapers.push_back ( QgsCompositionPaper( tr("Custom"), 0, 0, 1 ) );

0 commit comments

Comments
 (0)
Please sign in to comment.