From a35a87737ffe16bc4ee1fa3bb9872902109dadea Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 16 Nov 2014 08:03:59 +0000 Subject: [PATCH] ide: Line numbers cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@7902 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CodeEditor/EditorBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/CodeEditor/EditorBar.cpp b/uppsrc/CodeEditor/EditorBar.cpp index d756cfd8c..2c8484f7b 100644 --- a/uppsrc/CodeEditor/EditorBar.cpp +++ b/uppsrc/CodeEditor/EditorBar.cpp @@ -94,7 +94,7 @@ void EditorBar::Paint(Draw& w) if(line_numbers && i < editor->GetLineCount()) { String n = AsString(i + 1); for(int q = 0; q < 4 && q < n.GetLength(); q++) { - w.DrawImage(sz.cx - 8 - q * 6, + w.DrawImage(sz.cx - 8 - q * 6 - 12, y + (fy - CodeEditorImg::N0().GetSize().cy) / 2, numeri[n[n.GetLength() - 1 - q] - '0'], // CodeEditorImg::Vector[n[n.GetLength() - 1 - q] - '0' + CodeEditorImg::I_N0], @@ -484,7 +484,7 @@ void EditorBar::HidePtr() void EditorBar::SyncWidth() { - Width((line_numbers ? 27 : 12) + annotations); + Width((line_numbers ? 27 + 12 : 12) + annotations); Refresh(); }