Hi,

I'm trying to use FormatRange in my client code but I find that there way too much space between the line numbers and the text. The culprit seems to be this line:

        int xStart = vsPrint.fixedColumnWidth + pfr->rc.left + lineNumberWidth;

vsPrint.fixedColumnWidth contains the width of the line number margin (as set in the GUI) but lineNumberWidth also includes the width of "99999". This seems like an error to me. The width of the numbers is being counted twice.

SciTE works correctly but I'm not sure why.  Is this a known problem?

Thanks,
Jason Haslam

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to