Browse Source

Tables: fixed double-clicking on a column from clearing HoveredColumnBorder for a frame.

ocornut 1 year ago
parent
commit
be1311cfc1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      imgui.h
  2. 1 1
      imgui_tables.cpp

+ 1 - 1
imgui.h

@@ -24,7 +24,7 @@
 // Library Version
 // (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
 #define IMGUI_VERSION       "1.90 WIP"
-#define IMGUI_VERSION_NUM   18994
+#define IMGUI_VERSION_NUM   18995
 #define IMGUI_HAS_TABLE
 
 /*

+ 1 - 1
imgui_tables.cpp

@@ -1234,7 +1234,7 @@ void ImGui::TableUpdateBorders(ImGuiTable* table)
         {
             TableSetColumnWidthAutoSingle(table, column_n);
             ClearActiveID();
-            held = hovered = false;
+            held = false;
         }
         if (held)
         {