Skip to content

Commit

Permalink
Fix keyboard labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed Dec 7, 2023
1 parent 3ed360c commit 8190880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DMI/graphics/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
using namespace std;
void Layout::add(Component *comp, ComponentAlignment *alignment)
{
if(comp == nullptr || alignment == nullptr) return;
if(comp == nullptr || alignment == nullptr)
{
if (alignment != nullptr) delete alignment;
return;
}
elements.push_back({comp, alignment});
if(alignment->layer==0) comp->dispBorder = false;
updateLocations();
Expand Down
1 change: 1 addition & 0 deletions DMI/window/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ keyboard getSingleChoiceKeyboard(std::vector<std::string> posibilities, input_da
{
if (posibilities[i] == "") {
k.keys.push_back(nullptr);
if (softkeys) k.labels.push_back(nullptr);
continue;
}
if (softkeys)
Expand Down

0 comments on commit 8190880

Please sign in to comment.