Menu

#2373 Indicator drawn over margin

Bug
closed-fixed
nobody
5
2023-02-07
2023-01-12
No

Indicators are drawn over the margins if the text is scrolled horizontally after they are drawn the first time. I'm seeing this on the Qt version on macOS, though I haven't tried elsewhere.

1 Attachments

Related

Bugs: #1956

Discussion

  • Neil Hodgson

    Neil Hodgson - 2023-01-12
    • labels: --> scintilla, qt, indicator
     
  • Neil Hodgson

    Neil Hodgson - 2023-01-12

    This came up in the 'Color preview' mailing list discussion and there was some issue about the default mode for clipping was to replace the region instead of reducing the region.

    https://groups.google.com/g/scintilla-interest/c/-LyZ3ABq0As/m/eGCJs0IWAgAJ

     
    • John Ehresman

      John Ehresman - 2023-01-12

      Using GetPainter()->setClipRect(QRectFFromPRect(rc), Qt::IntersectClip); in SurfaceImpl::SetClip(PRectangle rc) seems to fix this bug. I haven't seen any regressions after changing it -- though if other platforms intersect the clip, it should be fine. Will run with it and let you know if there are any problems.

       
  • Neil Hodgson

    Neil Hodgson - 2023-01-13
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2023-01-13

    Committed fix as [f94c47].

     

    Related

    Commit: [f94c47]

    • Justin Dailey

      Justin Dailey - 2023-01-25

      Niel,
      I can confirm this commit also fixes this Qt clipping issue https://sourceforge.net/p/scintilla/bugs/1956/

       
  • Neil Hodgson

    Neil Hodgson - 2023-02-07
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB