mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:31:43 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue