Update of "Volumes in Objects reordered" undo / redo message

This commit is contained in:
bubnikv 2019-08-29 11:16:14 +02:00
parent 4af75c9f23
commit 885ff11d4c
2 changed files with 7 additions and 3 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-29 10:44+0200\n"
"POT-Creation-Date: 2019-08-29 11:15+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1586,7 +1586,11 @@ msgid "Instances to Separated Objects"
msgstr ""
#: src/slic3r/GUI/GUI_ObjectList.cpp:1010
msgid "Remove Volume(s)"
msgid "Volumes in Object reordered"
msgstr ""
#: src/slic3r/GUI/GUI_ObjectList.cpp:1010
msgid "Object reordered"
msgstr ""
#: src/slic3r/GUI/GUI_ObjectList.cpp:1065

View File

@ -1007,7 +1007,7 @@ void ObjectList::OnDrop(wxDataViewEvent &event)
// if (to_volume_id > from_volume_id) to_volume_id--;
// #endif // __WXGTK__
take_snapshot(_(L("Remove Volume(s)")));
take_snapshot(_((m_dragged_data.type() == itVolume) ? L("Volumes in Object reordered") : L("Object reordered")));
auto& volumes = (*m_objects)[m_dragged_data.obj_idx()]->volumes;
auto delta = to_volume_id < from_volume_id ? -1 : 1;