Skip to content

Commit

Permalink
Fix incomplete previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Oct 15, 2023
1 parent ef8ed8f commit ddd2d02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/maptooltip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ MapTooltip::MapTooltip(int x, int y, FONT font, FONT smallFont, int quality, Tra
if (sec.getItemCount() > 0 || hostedItems.size() > 0) {
Container* container = horizontalSections ? (Container*)new VBox(0,0,0,0) : (Container*)this;

const std::string& name = ogSec.getName().empty() ? sec.getName() : ogSec.getName();
const std::string& ogName = ogSec.getName();
const std::string& name = ogName.empty() ? sec.getName() : ogName;
if (!name.empty()) {
Label* lbl = new Label(0,0,0,0, smallFont, name);
Widget::Color c;
Expand Down

0 comments on commit ddd2d02

Please sign in to comment.