Skip to content
Snippets Groups Projects
Commit 4deed4a7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

more tweaks

parent b914187c
Branches
Tags
No related merge requests found
......@@ -225,7 +225,7 @@ void Msg::Fatal(const char *fmt, ...)
std::string tmp = std::string("@C1@.") + "Fatal : " + str;
FlGui::instance()->addMessage(tmp.c_str());
if(_firstError.empty()) _firstError = str;
FlGui::instance()->setLastStatus(FL_DARK_RED);
FlGui::instance()->setLastStatus(FL_RED);
FlGui::instance()->saveMessages
((CTX::instance()->homeDir + CTX::instance()->errorFileName).c_str());
fl_alert("A fatal error has occurred which will force Gmsh to abort.\n"
......@@ -271,7 +271,7 @@ void Msg::Error(const char *fmt, ...)
std::string tmp = std::string("@C1@.") + "Error : " + str;
FlGui::instance()->addMessage(tmp.c_str());
if(_firstError.empty()) _firstError = str;
FlGui::instance()->setLastStatus(FL_DARK_RED);
FlGui::instance()->setLastStatus(FL_RED);
}
#endif
......
......
......@@ -832,7 +832,7 @@ void FlGui::setStatus(const std::string &msg, bool opengl)
void FlGui::setLastStatus(int col)
{
for(unsigned int i = 0; i < graph.size(); i++){
if(col >= 0)
if(col >= 0 && graph[0]->getMessageHeight() < FL_NORMAL_SIZE)
graph[i]->getProgress()->labelcolor(col);
else
graph[i]->getProgress()->labelcolor(FL_FOREGROUND_COLOR);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment