Skip to content

Commit

Permalink
set mScale to 1 because Qt4.2 seems to be using pen widthF
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6189 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Dec 5, 2006
1 parent 65117c3 commit 9581949
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/composer/qgscomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 9581949

Please sign in to comment.