@@ -993,7 +993,12 @@ void Gui::computeDisplay(){
993
993
for (int i= 0 ; i < ut->getCommandTypeSortedCount (); ++i){
994
994
int displayPos= i;
995
995
const CommandType *ct= ut->getCommandTypeSorted (i);
996
- if (ct == NULL ) continue ;
996
+ if (ct == NULL ) {
997
+ display.setDownImage (displayPos, ut->getCancelImage ());
998
+ display.setCommandType (displayPos, ct);
999
+ display.setDownLighted (displayPos,false );
1000
+ continue ;
1001
+ }
997
1002
if (ct->getClass () == ccMorph) {
998
1003
displayPos= morphPos++;
999
1004
}
@@ -1042,7 +1047,15 @@ void Gui::computeDisplay(){
1042
1047
else {
1043
1048
// printf("selection.isUniform() == FALSE\n");
1044
1049
// non uniform selection
1045
- int basicPos= CommandHelper::getRowPos (crBasics);
1050
+ int basicPos = CommandHelper::getRowPos (crBasics);
1051
+
1052
+ // First row is always empty
1053
+ for (int i = 0 ; i < 5 ; i++) {
1054
+ display.setDownImage (i, ut->getCancelImage ());
1055
+ display.setCommandType (i, NULL );
1056
+ display.setDownLighted (i,false );
1057
+ }
1058
+
1046
1059
// only basics can be shared
1047
1060
for (auto &&cc : CommandHelper::getBasicsCC ()){
1048
1061
@@ -1064,8 +1077,10 @@ void Gui::computeDisplay(){
1064
1077
display.setDownImage (basicPos + ccPos, ut->getFirstCtOfClass (cc)->getImage ());
1065
1078
}
1066
1079
display.setCommandClass (basicPos + ccPos, cc);
1067
- display.setCommandClass (lastCommand, cc);
1068
- lastCommand++;
1080
+ } else {
1081
+ display.setDownImage (basicPos+ccPos, ut->getCancelImage ());
1082
+ display.setCommandType (basicPos+ccPos, NULL );
1083
+ display.setDownLighted (basicPos+ccPos,false );
1069
1084
}
1070
1085
}
1071
1086
}
0 commit comments