Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 8c1c9d7

Browse filesBrowse files
Merge pull request #6791 from livecodepanos/bugfix-21690
[21690] Fix crash when clicking on magnify palette with Browse tool
2 parents 0e11008 + e026ab9 commit 8c1c9d7
Copy full SHA for 8c1c9d7

File tree

Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed

‎docs/notes/bugfix-21690.md

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix crash when clicking on the magnify palette and a non-paint tool is selected

‎engine/src/idraw.cpp

Copy file name to clipboardExpand all lines: engine/src/idraw.cpp
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,12 @@ Boolean MCImage::magmdown(uint2 which)
640640

641641
// PM-2014-04-01: [[Bug 11072]] Convert image to mutable if an editing tool is selected, to prevent LC crashing
642642
if (isEditingTool(getstack()->gettool(this)))
643+
{
643644
convert_to_mutable();
644645

645-
if (static_cast<MCMutableImageRep *>(m_rep)->image_mdown(which) == True)
646-
return True;
646+
if (static_cast<MCMutableImageRep *>(m_rep)->image_mdown(which) == True)
647+
return True;
648+
}
647649

648650
state |= CS_MFOCUSED;
649651

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.