Skip to content

Commit 0525c01

Browse files
committed
Show frame entry independent of translation
1 parent 46bd33e commit 0525c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/composer/qgscomposermapwidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,14 +1283,14 @@ void QgsComposerMapWidget::setGridItems( const QgsComposerMapGrid* grid )
12831283

12841284
//grid frame
12851285
mFrameWidthSpinBox->setValue( grid->gridFrameWidth() );
1286-
QgsComposerMap::GridFrameStyle gridFrameStyle = mComposerMap->gridFrameStyle();
1286+
QgsComposerMap::GridFrameStyle gridFrameStyle = grid->gridFrameStyle();
12871287
if ( gridFrameStyle == QgsComposerMap::Zebra )
12881288
{
1289-
mFrameStyleComboBox->setCurrentIndex( mFrameStyleComboBox->findText( tr( "Zebra" ) ) );
1289+
mFrameStyleComboBox->setCurrentIndex( 1 );
12901290
}
12911291
else //NoGridFrame
12921292
{
1293-
mFrameStyleComboBox->setCurrentIndex( mFrameStyleComboBox->findText( tr( "No frame" ) ) );
1293+
mFrameStyleComboBox->setCurrentIndex( 0 );
12941294
}
12951295

12961296
//line style

0 commit comments

Comments
 (0)