|
@@ -5759,7 +5759,8 @@ void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags
|
|
{
|
|
{
|
|
ImGuiContext& g = *GImGui;
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
|
- BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None);
|
|
|
|
|
|
+ if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePreviousTooltip, ImGuiWindowFlags_None))
|
|
|
|
+ return;
|
|
const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text;
|
|
const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text;
|
|
if (text_end > text)
|
|
if (text_end > text)
|
|
{
|
|
{
|