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};