@@ -916,14 +916,16 @@ Boolean MCStack::kdown(MCStringRef p_string, KeySym key)
916916 if (MCmodifierstate & MS_MOD1)
917917 return MCundos->undo ();
918918 if (MCmodifierstate & MS_SHIFT)
919- if (MCactiveimage != NULL )
919+ {
920+ if (MCactiveimage)
920921 {
921922 MCactiveimage->cutimage ();
922923 return True;
923924 }
924925 else
925926 return MCselected->cut ();
926- if (MCactiveimage != NULL )
927+ }
928+ if (MCactiveimage)
927929 {
928930 MCactiveimage->delimage ();
929931 return True;
@@ -932,7 +934,7 @@ Boolean MCStack::kdown(MCStringRef p_string, KeySym key)
932934 case XK_BackSpace:
933935 if (MCmodifierstate & MS_MOD1)
934936 return MCundos->undo ();
935- if (MCactiveimage != NULL )
937+ if (MCactiveimage)
936938 {
937939 MCactiveimage->delimage ();
938940 return True;
@@ -941,15 +943,15 @@ Boolean MCStack::kdown(MCStringRef p_string, KeySym key)
941943 case XK_osfUndo:
942944 return MCundos->undo ();
943945 case XK_osfCut:
944- if (MCactiveimage != NULL )
946+ if (MCactiveimage)
945947 {
946948 MCactiveimage->cutimage ();
947949 return True;
948950 }
949951 else
950952 return MCselected->cut ();
951953 case XK_osfCopy:
952- if (MCactiveimage != NULL )
954+ if (MCactiveimage)
953955 {
954956 MCactiveimage->copyimage ();
955957 return True;
@@ -966,7 +968,7 @@ Boolean MCStack::kdown(MCStringRef p_string, KeySym key)
966968 return MCdispatcher -> dopaste (optr);
967969 }
968970 if (MCmodifierstate & MS_CONTROL)
969- if (MCactiveimage != NULL )
971+ if (MCactiveimage)
970972 {
971973 MCactiveimage->copyimage ();
972974 return True;
@@ -1025,7 +1027,7 @@ Boolean MCStack::kdown(MCStringRef p_string, KeySym key)
10251027 {
10261028 case XK_C:
10271029 case XK_c:
1028- if (MCactiveimage != NULL )
1030+ if (MCactiveimage)
10291031 {
10301032 MCactiveimage->copyimage ();
10311033 return True;
@@ -1039,7 +1041,7 @@ Boolean MCStack::kdown(MCStringRef p_string, KeySym key)
10391041
10401042 case XK_x:
10411043
1042- if (MCactiveimage != NULL )
1044+ if (MCactiveimage)
10431045 {
10441046 MCactiveimage->cutimage ();
10451047 return True;
0 commit comments