say user that Text can’t be empty
This commit is contained in:
parent
40817f537b
commit
630b1bb956
2 changed files with 13 additions and 1 deletions
src/slic3r/GUI/Gizmos
|
@ -990,6 +990,10 @@ void GLGizmoEmboss::draw_text_input()
|
|||
tool_tip += t;
|
||||
}
|
||||
};
|
||||
if (m_text.empty() ||
|
||||
m_text.find_first_not_of(" \n\t\r") == std::string::npos)
|
||||
append_warning(_u8L("Empty"),
|
||||
_u8L("Embossed text can NOT contain only white spaces."));
|
||||
if (m_text_contain_unknown_glyph)
|
||||
append_warning(_u8L("Bad symbol"),
|
||||
_u8L("Text contain character glyph (represented by '?') unknown by font."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue