git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4997 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-07-31 17:54:22 +00:00
parent fbae3da33f
commit 5d4fcfa932

View File

@@ -834,6 +834,8 @@ bool QETElementEditor::toFile(const QString &fn)
{
m_elmt_scene->clearEventInterface();
m_elmt_scene->clearSelection();
UncheckAddPrimitive();
QDomDocument element_xml = m_elmt_scene->toXml();
bool writing = QET::writeXmlFile(element_xml, fn);
if (!writing) {
@@ -857,6 +859,7 @@ bool QETElementEditor::toLocation(const ElementsLocation &location)
{
m_elmt_scene->clearEventInterface();
m_elmt_scene->clearSelection();
UncheckAddPrimitive();
if (!location.setXml(m_elmt_scene->toXml()))
{