Skip to content
Permalink
Browse files

fixed crash on edit attr / no line

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12925 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Feb 11, 2010
1 parent 8bc36d6 commit 6cdb7ae6ccf6293d7009b5c3e86ea26892d8c57e
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/plugins/grass/qgsgrassedittools.cpp
@@ -893,9 +893,11 @@ void QgsGrassEditAttributes::mouseClick( QgsPoint & point, Qt::MouseButton butto
e->mAttributes->setLine( 0 );
e->mAttributes->clear();
e->mAttributes->raise();
// Just to disable new button
e->mAttributes->setCategoryMode( QgsGrassEdit::CAT_MODE_NOCAT, QString() );
}

if ( e->mSelectedLine ) // highlite
if ( e->mSelectedLine > 0 ) // highlite
{
e->displayElement( e->mSelectedLine, e->mSymb[QgsGrassEdit::SYMB_HIGHLIGHT], e->mSize );

@@ -915,7 +917,6 @@ void QgsGrassEditAttributes::mouseClick( QgsPoint & point, Qt::MouseButton butto
}
e->mAttributes->show();
e->mAttributes->raise();
e->mAttributes->setCategoryMode( static_cast<QgsGrassEdit::CatMode>( e->mCatModeBox->currentIndex() ), e->mCatEntry->text() );
}

e->mAttributes->setCategoryMode( static_cast<QgsGrassEdit::CatMode>( e->mCatModeBox->currentIndex() ), e->mCatEntry->text() );
}

0 comments on commit 6cdb7ae

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