Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 41c40a5

Browse files
author
livecodeali
committed
[ CID 16885 ] Fix uninitialized scalar field
1 parent 155939a commit 41c40a5

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

engine/src/edittool.cpp

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,18 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
3939
#include "edittool.h"
4040

4141

42-
MCGradientEditTool::MCGradientEditTool(MCGraphic *p_graphic, MCGradientFill *p_gradient, MCEditMode p_mode)
42+
MCGradientEditTool::MCGradientEditTool(MCGraphic *p_graphic,
43+
MCGradientFill *p_gradient,
44+
MCEditMode p_mode) :
45+
mode(p_mode),
46+
graphic(p_graphic),
47+
gradient(p_gradient),
48+
m_gradient_edit_point(-1),
49+
xoffset(0),
50+
yoffset(0)
51+
4352
{
44-
graphic = p_graphic;
45-
mode = p_mode;
46-
gradient = p_gradient;
47-
m_gradient_edit_point = -1;
53+
;
4854
}
4955

5056
MCEditMode MCGradientEditTool::type()

0 commit comments

Comments
 (0)