Skip to content

Commit

Permalink
"Fix" failing spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 23, 2017
1 parent bfcf252 commit 82c66f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/app/qgisapp.cpp
Expand Up @@ -5784,20 +5784,20 @@ void QgisApp::updateFilterLegend()
void QgisApp::saveMapAsImage()
{
QList< QgsMapDecoration * > decorations;
QString activeDecorations;
QString currentDecorations;
Q_FOREACH ( QgsDecorationItem *decoration, mDecorationItems )
{
if ( decoration->enabled() )
{
decorations << decoration;
if ( activeDecorations.isEmpty() )
activeDecorations = decoration->name().toLower();
if ( currentDecorations.isEmpty() )
currentDecorations = decoration->name().toLower();
else
activeDecorations += QString( ", %1" ).arg( decoration->name().toLower() );
currentDecorations += QString( ", %1" ).arg( decoration->name().toLower() );
}
}

QgsMapSaveDialog dlg( this, mMapCanvas, activeDecorations );
QgsMapSaveDialog dlg( this, mMapCanvas, currentDecorations );
if ( !dlg.exec() )
return;

Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmapsavedialog.cpp
Expand Up @@ -29,7 +29,7 @@

Q_GUI_EXPORT extern int qt_defaultDpiX();

QgsMapSaveDialog::QgsMapSaveDialog( QWidget *parent, QgsMapCanvas *mapCanvas, const QString &activeDecorations )
QgsMapSaveDialog::QgsMapSaveDialog( QWidget *parent, QgsMapCanvas *mapCanvas, const QString &decorations )
: QDialog( parent )
{
setupUi( this );
Expand All @@ -48,7 +48,7 @@ QgsMapSaveDialog::QgsMapSaveDialog( QWidget *parent, QgsMapCanvas *mapCanvas, co
mScaleWidget->setMapCanvas( mapCanvas );
mScaleWidget->setShowCurrentScaleButton( true );

mDrawDecorations->setText( QString( "Draw active decorations: %1" ).arg( !activeDecorations.isEmpty() ? activeDecorations : tr( "none" ) ) );
mDrawDecorations->setText( QString( "Draw active decorations: %1" ).arg( !decorations.isEmpty() ? decorations : tr( "none" ) ) );

connect( mResolutionSpinBox, static_cast < void ( QSpinBox::* )( int ) > ( &QSpinBox::valueChanged ), this, &QgsMapSaveDialog::updateDpi );
connect( mExtentGroupBox, &QgsExtentGroupBox::extentChanged, this, &QgsMapSaveDialog::updateExtent );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmapsavedialog.h
Expand Up @@ -39,7 +39,7 @@ class APP_EXPORT QgsMapSaveDialog: public QDialog, private Ui::QgsMapSaveDialog

/** Constructor for QgsMapSaveDialog
*/
QgsMapSaveDialog( QWidget *parent = nullptr, QgsMapCanvas *mapCanvas = nullptr, const QString &activeDecorations = QString() );
QgsMapSaveDialog( QWidget *parent = nullptr, QgsMapCanvas *mapCanvas = nullptr, const QString &decorations = QString() );

//! returns extent rectangle
QgsRectangle extent() const;
Expand Down

3 comments on commit 82c66f8

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 82c66f8 Apr 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nyalldawson , @3nids , the proper fix would be to insure that the spell checker handlesCamelCasedWordsProperly :)

@3nids
Copy link
Member

@3nids 3nids commented on 82c66f8 Apr 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will have a look

@3nids
Copy link
Member

@3nids 3nids commented on 82c66f8 Apr 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in 68e0a62, with a bit of noise in commits, sorry.

Please sign in to comment.