From 1b60c68ae27e81f6a9ea3efa0651467f6a5dc9ea Mon Sep 17 00:00:00 2001 From: scheffle Date: Fri, 26 Apr 2024 11:11:36 +0200 Subject: [PATCH] fix typo --- vstgui/lib/ctexteditor.cpp | 4 ++-- vstgui/lib/ctexteditor.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vstgui/lib/ctexteditor.cpp b/vstgui/lib/ctexteditor.cpp index 7fc3cb601..edd3bb0b4 100644 --- a/vstgui/lib/ctexteditor.cpp +++ b/vstgui/lib/ctexteditor.cpp @@ -1415,7 +1415,7 @@ void TextEditorView::updateLineNumbersView () const } auto lineNumbersWidth = md.style->lineNumbersFont->getFontPainter ()->getStringWidth ( nullptr, str.getPlatformString ()); - lineNumbersWidth += (md.style->lineNumerLeftMargin + md.style->lineNumerRightMargin); + lineNumbersWidth += (md.style->lineNumberLeftMargin + md.style->lineNumberRightMargin); lineNumbersWidth = std::ceil (lineNumbersWidth); auto vs = md.lineNumberView->getViewSize (); if (vs.getWidth () != lineNumbersWidth) @@ -2894,7 +2894,7 @@ void LineNumberView::drawRect (CDrawContext* context, const CRect& _dirtyRect) auto lineNoWidth = style->lineNumbersFont->getFontPainter ()->getStringWidth ( context->getPlatformDeviceContext (), lineNoStr.getPlatformString ()); context->drawString (lineNoStr.getPlatformString (), - {x - (lineNoWidth + style->lineNumerRightMargin), y}); + {x - (lineNoWidth + style->lineNumberRightMargin), y}); } auto cr = getViewSize (); diff --git a/vstgui/lib/ctexteditor.h b/vstgui/lib/ctexteditor.h index 09f7413a4..1d3c8539a 100644 --- a/vstgui/lib/ctexteditor.h +++ b/vstgui/lib/ctexteditor.h @@ -58,8 +58,8 @@ struct ITextEditor CColor lineNumberLine {127, 127, 127, 100}; CCoord lineSpacing {2.5}; CCoord leftMargin {4.}; - CCoord lineNumerLeftMargin {2.}; - CCoord lineNumerRightMargin {2.}; + CCoord lineNumberLeftMargin {2.}; + CCoord lineNumberRightMargin {2.}; uint32_t cursorBlinkTime {500}; // in milliseconds uint32_t tabWidth {4}; bool showLineNumbers {true};