diff options
author | Neil <nyamatongwe@gmail.com> | 2021-04-26 16:20:39 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-04-26 16:20:39 +1000 |
commit | 8bf2761612f478604b92e06a10df872b1b48d775 (patch) | |
tree | 680df5ba80b7b3672a3c547b413945037695864d /src/MarginView.cxx | |
parent | baff93d6117396c57dbffbd28e69fde92712a88a (diff) | |
download | scintilla-mirror-8bf2761612f478604b92e06a10df872b1b48d775.tar.gz |
Extract related groups of fields out of ViewStyle into new structs.
Size of ViewStyle makes it more difficult to understand and this helps a bit.
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r-- | src/MarginView.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx index 2382ce1a8..0c0045133 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -391,7 +391,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, rcNumber.left = xpos; DrawTextNoClipPhase(surface, rcNumber, vs.styles[STYLE_LINENUMBER], rcNumber.top + vs.maxAscent, sNumber, DrawPhase::all); - } else if (vs.wrapVisualFlags & SC_WRAPVISUALFLAG_MARGIN) { + } else if (vs.wrap.visualFlags & SC_WRAPVISUALFLAG_MARGIN) { PRectangle rcWrapMarker = rcMarker; rcWrapMarker.right -= wrapMarkerPaddingRight; rcWrapMarker.left = rcWrapMarker.right - vs.styles[STYLE_LINENUMBER].aveCharWidth; |