From 18bdda4cb6771803e29d6b65ef4d8ddcc41e7980 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Wed, 18 Oct 2023 00:01:15 +0200 Subject: [PATCH] remove wrongly commited pin stuff --- src/ui/maptooltip.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/ui/maptooltip.cpp b/src/ui/maptooltip.cpp index 3377e099..0e0c8c17 100644 --- a/src/ui/maptooltip.cpp +++ b/src/ui/maptooltip.cpp @@ -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); }