mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[MSPAINT] Fix assertion failure on text tool (#5762)
Kill the assertion failure on choosing text tool. Check whether textEditWindow is not null by using IsWindowVisible. CORE-19094
This commit is contained in:
parent
d72025649b
commit
3579ea7888
|
@ -762,7 +762,8 @@ struct TextTool : ToolBase
|
|||
|
||||
void OnFinishDraw() override
|
||||
{
|
||||
if (textEditWindow.GetWindowTextLength() > 0)
|
||||
if (::IsWindowVisible(textEditWindow) &&
|
||||
textEditWindow.GetWindowTextLength() > 0)
|
||||
{
|
||||
imageModel.PushImageForUndo();
|
||||
draw(m_hdc);
|
||||
|
|
Loading…
Reference in a new issue