Skip to content

Commit 099d637

Browse files
committed
Merge branch 'issue_1956' of https://github.com/nophead/openscad into issue_1956
2 parents 8352592 + 77e7c82 commit 099d637

File tree

7 files changed

+4
-5376
lines changed

7 files changed

+4
-5376
lines changed

src/mainwin.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ bool MainWindow::fileChangedOnDisk()
17511751
*/
17521752
void MainWindow::compileTopLevelDocument()
17531753
{
1754-
resetPrintedDeprecations();
1754+
resetSuppressedMessages();
17551755

17561756
this->last_compiled_doc = editor->toPlainText();
17571757

src/printutils.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ void printDeprecation(const std::string &str)
119119
}
120120
}
121121

122-
void resetPrintedDeprecations()
122+
void resetSuppressedMessages()
123123
{
124124
printedDeprecations.clear();
125+
lastmessages.clear();
125126
}

src/printutils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern std::list<std::string> print_messages_stack;
2323
void print_messages_push();
2424
void print_messages_pop();
2525
void printDeprecation(const std::string &str);
26-
void resetPrintedDeprecations();
26+
void resetSuppressedMessages();
2727

2828
#define PRINT_DEPRECATION(_fmt, _arg) do { printDeprecation(str(boost::format(_fmt) % _arg)); } while (0)
2929

0 commit comments

Comments
 (0)