Skip to content

Commit

Permalink
remove wrongly commited pin stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Oct 17, 2023
1 parent 82e705f commit 18bdda4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/ui/maptooltip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,7 @@ MapTooltip::MapTooltip(int x, int y, FONT font, FONT smallFont, int quality, Tra
lbl->setTextAlignment(Label::HAlign::LEFT, Label::VAlign::MIDDLE);
lbl->setSize(lbl->getSize()||lbl->getMinSize()); // FIXME: this should not be neccessary
lbl->setMinSize(lbl->getSize()||lbl->getMinSize());
if (needPin) {
auto pin = makePin();
HBox* hbox = new HBox(0,0,0,0);
hbox->addChild(pin);
hbox->addChild(lbl);
hbox->relayout();
container->addChild(hbox);
needPin = false;
} else {
container->addChild(lbl);
}
container->addChild(lbl);
} else {
_sectionLabels.push_back(nullptr);
}
Expand Down

0 comments on commit 18bdda4

Please sign in to comment.