Commit 70c97bcc authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Plugin-PolyLine: Fixed crash due to uncareful return key handling.


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17274 383ad7c9-94d9-4d36-a494-682f7c89f535
parent af24e4af
......@@ -157,6 +157,7 @@ slotMouseEvent( QMouseEvent* _event )
}
void PolyLinePlugin::slotKeyEvent(QKeyEvent* event) {
if (!cur_polyline_obj_ || cur_insert_id_ == -1) return;
switch (event->key()) {
case Qt::Key_Return:
if (PluginFunctions::pickMode() == ("PolyLine") && PluginFunctions::actionMode() == Viewer::PickingMode && mode() == PL_INSERT) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment