mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 13:35:49 +02:00
Internal: Disable debug logs macro if IMGUI_DISABLE_DEBUG_TOOLS is defined. (#5901)
+ needed to rework clipper code to avoid "The 'then' statement is equivalent to the 'else' statement." PVS Studio warning.
This commit is contained in:
@ -2871,11 +2871,14 @@ bool ImGuiListClipper::Step()
|
||||
if (need_items_height && ItemsHeight > 0.0f)
|
||||
IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight);
|
||||
if (ret)
|
||||
{
|
||||
IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n");
|
||||
if (!ret)
|
||||
End();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user