Rename DocumentCreateFlags to DocumentInitFlags.
This commit is contained in:
@@ -357,14 +357,14 @@ PyObject* Application::sOpenDocument(PyObject* /*self*/, PyObject* args, PyObjec
|
||||
std::string EncodedName = std::string(Name);
|
||||
PyMem_Free(Name);
|
||||
try {
|
||||
DocumentCreateFlags createFlags {
|
||||
DocumentInitFlags initFlags {
|
||||
.createView = !Base::asBoolean(hidden),
|
||||
.temporary = Base::asBoolean(temporary)
|
||||
};
|
||||
|
||||
// return new document
|
||||
return (GetApplication()
|
||||
.openDocument(EncodedName.c_str(), createFlags)
|
||||
.openDocument(EncodedName.c_str(), initFlags)
|
||||
->getPyObject());
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
@@ -402,13 +402,13 @@ PyObject* Application::sNewDocument(PyObject* /*self*/, PyObject* args, PyObject
|
||||
|
||||
PY_TRY
|
||||
{
|
||||
DocumentCreateFlags createFlags {
|
||||
DocumentInitFlags initFlags {
|
||||
.createView = !Base::asBoolean(hidden),
|
||||
.temporary = Base::asBoolean(temp)
|
||||
};
|
||||
App::Document* doc = GetApplication().newDocument(docName,
|
||||
usrName,
|
||||
createFlags);
|
||||
initFlags);
|
||||
PyMem_Free(docName);
|
||||
PyMem_Free(usrName);
|
||||
return doc->getPyObject();
|
||||
|
||||
Reference in New Issue
Block a user