diff options
author | nyamatongwe <devnull@localhost> | 2010-03-13 03:40:05 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-03-13 03:40:05 +0000 |
commit | 1c6bfac2880b4f9b9b0691cf9cb44f426dedae65 (patch) | |
tree | d74c633c7699ee0a892293c3d949fb10ba0e197b /src | |
parent | e86a669c757e195237e44c5fd13786ce39acb3ac (diff) | |
download | scintilla-mirror-1c6bfac2880b4f9b9b0691cf9cb44f426dedae65.tar.gz |
Change definition of Sci_RangeToFormat to avoid reliance on Platform.h.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 54fb6185b..ad0ca635b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3536,7 +3536,7 @@ long Editor::FormatRange(bool draw, Sci_RangeToFormat *pfr) { int nPrintPos = pfr->chrg.cpMin; int visibleLine = 0; - int widthPrint = pfr->rc.Width() - vsPrint.fixedColumnWidth; + int widthPrint = pfr->rc.right - pfr->rc.left - vsPrint.fixedColumnWidth; if (printWrapState == eWrapNone) widthPrint = LineLayout::wrapWidthInfinite; |