# HG changeset patch # User insilmaril # Date 1127393765 0 # Node ID 4244bcd9e6ea73a1384b7ceb3bec8f33ef1ac902 # Parent d442a66e91212332cdd4ec9d1ed0e661377aa185 fixed problem where note got lost by copying a branch diff -r d442a66e9121 -r 4244bcd9e6ea mapeditor.cpp --- a/mapeditor.cpp Thu Sep 22 12:14:23 2005 +0000 +++ b/mapeditor.cpp Thu Sep 22 12:56:05 2005 +0000 @@ -1410,7 +1410,7 @@ to->move2RelPos ( from->getRelPos()); // select data in clipboard - clipboardME->select ("bo:0"); + // clipboardME->select ("bo:0"); // repositioning makes testing nicer, // but is not needed usually: @@ -1420,6 +1420,9 @@ clipboardME->hide(); } } + /* FIXME rewrite this using import/export + Currently there is a bug which would erase note, if + branchobj in clipboard is selected... if (typeid(*selection) == typeid(FloatImageObj) ) { FloatImageObj* to; @@ -1442,7 +1445,8 @@ else clipboardME->hide(); } - } + } + */ } } @@ -1619,6 +1623,7 @@ // Finish open lineEdits if (lineedit) finishedLineEditNoSave(); + clipboardME->select ("bo:0"); LinkableMapObj *fromLMO=clipboardME->getSelection(); LinkableMapObj *returnLMO=NULL;