Skip to content

Commit

Permalink
Fix selection handles showing incorrectly on new compositions
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 3, 2013
1 parent 4ea85fe commit b9bbe65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/composer/qgscomposition.cpp
Expand Up @@ -73,10 +73,11 @@ QgsComposition::QgsComposition( QgsMapRenderer* mapRenderer )
setBackgroundBrush( Qt::gray ); setBackgroundBrush( Qt::gray );
addPaperItem(); addPaperItem();


//add mouse selection handles to composition, and initially hide
mSelectionHandles = new QgsComposerMouseHandles( this ); mSelectionHandles = new QgsComposerMouseHandles( this );
addItem( mSelectionHandles ); addItem( mSelectionHandles );
mSelectionHandles->setRect( 30, 30, 100, 100 ); mSelectionHandles->hide();
mSelectionHandles->setZValue( 200 ); mSelectionHandles->setZValue( 500 );


mPrintResolution = 300; //hardcoded default mPrintResolution = 300; //hardcoded default
loadSettings(); loadSettings();
Expand Down

0 comments on commit b9bbe65

Please sign in to comment.