Skip to content
Permalink
Browse files

Fix crash in rule paste

  • Loading branch information
NathanW2 committed Sep 14, 2013
1 parent 7ba1c4d commit 80a13416397ebc88fa6611631edfd96f6787937e
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/symbology-ng/qgsrulebasedrendererv2widget.cpp
@@ -420,7 +420,11 @@ void QgsRuleBasedRendererV2Widget::copy()
void QgsRuleBasedRendererV2Widget::paste()
{
const QMimeData* mime = QApplication::clipboard()->mimeData();
QModelIndex index = viewRules->selectionModel()->selectedRows().first();
QModelIndexList indexlist = viewRules->selectionModel()->selectedRows();
if ( indexlist.isEmpty() )
return;

QModelIndex index = indexlist.first();
mModel->dropMimeData( mime, Qt::CopyAction, index.row(), index.column(), index.parent() );
}

0 comments on commit 80a1341

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