remove accidental semicolon, fix led measurements

This commit is contained in:
2024-11-26 11:45:20 -06:00
committed by Celtic Minstrel
parent c913b11047
commit dd1b4a66bb

View File

@@ -173,7 +173,7 @@ location cLed::getPreferredSize() const {
if(!getText().empty()){
TextStyle style;
style.pointSize = textSize;
width = LED_TEXT_SPACE + ledRects[state][depressed].width(); + string_length(getText(), style);
width = LED_TEXT_SPACE + ledRects[state][depressed].width() + string_length(getText(), style);
}
return {width, ledRects[0][0].height()};
}