aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-26 16:20:39 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-26 16:20:39 +1000
commit8bf2761612f478604b92e06a10df872b1b48d775 (patch)
tree680df5ba80b7b3672a3c547b413945037695864d /src/MarginView.cxx
parentbaff93d6117396c57dbffbd28e69fde92712a88a (diff)
downloadscintilla-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.cxx2
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;