Skip to content

Commit b39037d

Browse files
authored
Fix thumbnail tooltip crash (#139)
* fix crashing thumbnail tooltips * fix variable name
1 parent 2140b85 commit b39037d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xpano/gui/panels/thumbnail_pane.cc

+2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ void ThumbnailPane::ThumbnailTooltip(const std::vector<int> &images) const {
203203
}
204204
ImGui::BeginTooltip();
205205
for (const int img_id : images) {
206+
ImGui::PushID(img_id);
206207
ThumbnailButton(img_id);
208+
ImGui::PopID();
207209
ImGui::SameLine();
208210
}
209211
ImGui::EndTooltip();

0 commit comments

Comments
 (0)