Fix crash in georges edit due to string change

feature/pre-code-move
kaetemi 5 years ago committed by Jan Boon
parent c2d0b6206c
commit 1b35b7812b

@ -1091,27 +1091,27 @@ bool CGeorgesEditApp::SerialIntoMemStream (const char *formName, CGeorgesEditDoc
{ {
if (array) if (array)
{ {
(safe_cast<const CFormElmArray*> (node))->write (nodeXml, doc->getFormPtr(), NULL); (safe_cast<const CFormElmArray*> (node))->write (nodeXml, doc->getFormPtr(), std::string());
} }
else else
{ {
if (type == UFormDfn::EntryDfn) if (type == UFormDfn::EntryDfn)
{ {
(safe_cast<const CFormElmStruct*> (node))->write (nodeXml, doc->getFormPtr(), NULL); (safe_cast<const CFormElmStruct*> (node))->write (nodeXml, doc->getFormPtr(), std::string());
} }
else if (type == UFormDfn::EntryVirtualDfn) else if (type == UFormDfn::EntryVirtualDfn)
{ {
(safe_cast<const CFormElmVirtualStruct*> (node))->write (nodeXml, doc->getFormPtr(), NULL); (safe_cast<const CFormElmVirtualStruct*> (node))->write (nodeXml, doc->getFormPtr(), std::string());
} }
else if (type == UFormDfn::EntryType) else if (type == UFormDfn::EntryType)
{ {
(safe_cast<const CFormElmAtom*> (node))->write (nodeXml, doc->getFormPtr(), NULL); (safe_cast<const CFormElmAtom*> (node))->write (nodeXml, doc->getFormPtr(), std::string());
} }
} }
} }
else else
{ {
(safe_cast<const CFormElmVirtualStruct*> (node))->write (nodeXml, doc->getFormPtr(), NULL); (safe_cast<const CFormElmVirtualStruct*> (node))->write (nodeXml, doc->getFormPtr(), std::string());
} }
} }

Loading…
Cancel
Save