Skip to content

Commit 1835a22

Browse files
Merge pull request livecode#1285 from runrevsebastien/bugfix-view_rect
[[ ViewRect ]] Ensure that the view_rect is copied when a stack is copie...
2 parents c9e0c0e + 83af514 commit 1835a22

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

engine/src/stackview.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ void MCStack::view_copy(const MCStack &p_view)
127127

128128
// IM-2014-01: [[ HiDPI ]] Initialize the view backing surface scale
129129
m_view_backing_scale = p_view.m_view_backing_scale;
130+
131+
// SN-2014-14-10: [[ ViewRect ]] Ensure that the view rect is copied (uninitialised m_view_rect
132+
// might lead to a crash)
133+
m_view_rect = p_view.m_view_rect;
130134
}
131135

132136
void MCStack::view_destroy(void)

0 commit comments

Comments
 (0)