diff --git a/Common/CreateFile.cpp b/Common/CreateFile.cpp index 88e2c788f50ac26321576d1182ec6369c7744324..f7b943f13d544ba39a320c8630481fc221c6329e 100644 --- a/Common/CreateFile.cpp +++ b/Common/CreateFile.cpp @@ -222,7 +222,7 @@ static void change_print_parameter(int frame) ParseString(CTX::instance()->print.parameterCommand); } -void CreateOutputFile(const std::string &fileName, int format, bool redraw) +void CreateOutputFile(const std::string &fileName, int format, bool status) { std::string name = fileName; if(name.empty()) name = GetDefaultFileName(format); @@ -232,7 +232,7 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw) CTX::instance()->printing = 1; bool error = false; - if(redraw) + if(status) Msg::StatusBar(true, "Writing '%s'...", name.c_str()); switch (format) { @@ -625,10 +625,10 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw) CTX::instance()->print.fileFormat = oldFormat; CTX::instance()->printing = 0; - if(redraw && !error) + if(status && !error) Msg::StatusBar(true, "Done writing '%s'", name.c_str()); #if defined(HAVE_OPENGL) - if(redraw) drawContext::global()->draw(); + drawContext::global()->draw(); #endif } diff --git a/Common/CreateFile.h b/Common/CreateFile.h index df878cc10a0756f454d4ddf088482112e0d7c621..15cf0a5572ae7750a89c119a561237ed45401a30 100644 --- a/Common/CreateFile.h +++ b/Common/CreateFile.h @@ -11,6 +11,6 @@ int GetFileFormatFromExtension(const std::string &fileName); int GuessFileFormatFromFileName(const std::string &fileName); std::string GetDefaultFileName(int format); -void CreateOutputFile(const std::string &fileName, int format, bool redraw=true); +void CreateOutputFile(const std::string &fileName, int format, bool status=true); #endif diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index f2f29a2e30a70ef345f50300d8783ab660301a0d..fb60147fbbbced8045649708ca0e9d413954ce59 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -267,7 +267,8 @@ StringXString ViewOptions_String[] = { StringXString PrintOptions_String[] = { { F|O, "ParameterCommand" , opt_print_parameter_command , - "View.Clip=1; General.Clip0D=Print.Parameter;" , + "Mesh.Clip=1; View.Clip=1; General.ClipWholeElements=1; " + "General.Clip0D=Print.Parameter; SetChanged;" , "Command parsed when the print parameter is changed" }, { 0, 0 , 0 , "" , 0 }