Sfoglia il codice sorgente

Fixed markdown widget.

Бранимир Караџић 7 anni fa
parent
commit
419c49d4f9
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      3rdparty/dear-imgui/widgets/markdown.inl

+ 4 - 0
3rdparty/dear-imgui/widgets/markdown.inl

@@ -164,6 +164,10 @@ namespace ImGui
                 text = endPrevLine;
                 if( *text == ' ' ) { ++text; }    // skip a space at start of line
                 endPrevLine = pFont->CalcWordWrapPositionA( scale, text, text_end, widthLeft );
+                if (text == endPrevLine)
+                {
+                    endPrevLine++;
+                }
                 ImGui::TextUnformatted( text, endPrevLine );
             }
         }