Skip to content
Permalink
Browse files

Fix missing space between 'Middle' and 'Right' click instructions, co…

…nsistently use 'vertex' rather than 'point' while adding lines or boundaries. Fixes bug #3846.
  • Loading branch information
Sandro Santilli
Sandro Santilli committed May 26, 2011
1 parent 2670283 commit 7c8ded108127fb038bb37e65b1f0949a769858af
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/plugins/grass/qgsgrassedit.cpp
  2. +3 −3 src/plugins/grass/qgsgrassedittools.cpp
@@ -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()
@@ -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" ) );
}
}

0 comments on commit 7c8ded1

Please sign in to comment.
You can’t perform that action at this time.