Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Apr 26, 2024
1 parent aa3378d commit 1b60c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 ();
Expand Down
4 changes: 2 additions & 2 deletions vstgui/lib/ctexteditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 1b60c68

Please sign in to comment.