File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ void QgsComposerView::addShape( Tool currentTool )
390
390
else if ( currentTool == AddTriangle )
391
391
shape = QgsComposerShape::Triangle;
392
392
393
- if ( !mRubberBandItem || mRubberBandItem ->rect ().width () < 0.1 || mRubberBandItem ->rect ().width () < 0.1 )
393
+ if ( !mRubberBandItem || ( mRubberBandItem ->rect ().width () < 0.1 && mRubberBandItem ->rect ().height () < 0.1 ) )
394
394
{
395
395
removeRubberBand ();
396
396
return ;
@@ -691,7 +691,7 @@ void QgsComposerView::mouseReleaseEvent( QMouseEvent* e )
691
691
break ;
692
692
693
693
case AddMap:
694
- if ( !mRubberBandItem || mRubberBandItem ->rect ().width () < 0.1 || mRubberBandItem ->rect ().width () < 0.1 )
694
+ if ( !mRubberBandItem || ( mRubberBandItem ->rect ().width () < 0.1 && mRubberBandItem ->rect ().height () < 0.1 ) )
695
695
{
696
696
removeRubberBand ();
697
697
return ;
You can’t perform that action at this time.
0 commit comments