Skip to content

Commit

Permalink
Fix missing space between 'Middle' and 'Right' click instructions, co…
Browse files Browse the repository at this point in the history
…nsistently use 'vertex' rather than 'point' while adding lines or boundaries. Fixes bug #3846.
  • Loading branch information
Sandro Santilli committed May 26, 2011
1 parent 2670283 commit 7c8ded1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/plugins/grass/qgsgrassedit.cpp
Expand Up @@ -1912,11 +1912,11 @@ void QgsGrassEdit::setCanvasPrompt( QString left, QString mid, QString right )
QgsDebugMsg( "entered." );
mCanvasPrompt = "";
if ( left.length() > 0 )
mCanvasPrompt.append( tr( "Left: %1 " ).arg( left ) );
mCanvasPrompt.append( tr( "Left: %1" ).arg( left ) );
if ( mid.length() > 0 )
mCanvasPrompt.append( tr( "Middle: %1" ).arg( mid ) );
mCanvasPrompt.append( tr( " -- Middle: %1" ).arg( mid ) );
if ( right.length() > 0 )
mCanvasPrompt.append( tr( "Right: %1" ).arg( right ) );
mCanvasPrompt.append( tr( " -- Right: %1" ).arg( right ) );
}

void QgsGrassEdit::attributesClosed()
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/grass/qgsgrassedittools.cpp
Expand Up @@ -228,15 +228,15 @@ void QgsGrassEditNewLine::mouseClick( QgsPoint & point, Qt::MouseButton button )

if ( e->mEditPoints->n_points == 0 )
{
e->setCanvasPrompt( tr( "New point" ), "", "" );
e->setCanvasPrompt( tr( "New vertex" ), "", "" );
}
else if ( e->mEditPoints->n_points == 1 )
{
e->setCanvasPrompt( tr( "New point" ), tr( "Undo last point" ), "" );
e->setCanvasPrompt( tr( "New vertex" ), tr( "Undo last vertex" ), "" );
}
else if ( e->mEditPoints->n_points > 1 )
{
e->setCanvasPrompt( tr( "New point" ), tr( "Undo last point" ), tr( "Close line" ) );
e->setCanvasPrompt( tr( "New vertex" ), tr( "Undo last vertex" ), tr( "Close line" ) );
}
}

Expand Down

0 comments on commit 7c8ded1

Please sign in to comment.