From 8bf2761612f478604b92e06a10df872b1b48d775 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 26 Apr 2021 16:20:39 +1000 Subject: 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. --- src/MarginView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MarginView.cxx') 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; -- cgit v1.2.3