Menu

#2464 It appears that SurfaceImpl::DrawTextClippedUTF8 calls wrong method

Bug
closed-fixed
nobody
5
2025-04-02
2025-02-26
8day
No

In scintilla/qt/ScintillaEditBase/PlatQt.cpp, both DrawTextClipped() and DrawTextClippedUTF8() call DrawTextNoClip(). From the looks of it DrawTextClippedUTF8() should have called UTF-8 variant of DrawTextNoClip().

--- C:/PlatQt.cpp   Mon Feb 24 21:32:48 2025
+++ C:/PlatQt.cpp.fixed Wed Feb 26 13:30:50 2025
@@ -667,7 +667,7 @@
                  ColourRGBA back)
 {
    SetClip(rc);

-   DrawTextNoClip(rc, font, ybase, text, fore, back);
+   DrawTextNoClipUTF8(rc, font, ybase, text, fore, back);
    PopClip();
 }

Discussion

  • Zufu Liu

    Zufu Liu - 2025-02-27
    • labels: Qt --> Qt, Scintilla
     
  • Neil Hodgson

    Neil Hodgson - 2025-02-27
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2025-02-27

    Committed with [3f8214].

     

    Related

    Commit: [3f8214]

  • Neil Hodgson

    Neil Hodgson - 2025-04-02
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB