I decided to repeat the tests systematically on the two panels displaying the same file.One issue is definitely, that the print-function always uses the first control, not the last active one.
These are the only versions I can still use (Vista Business Pack 2, TDM-GCC 4.7.1, wxWidgets unicode 2.8.12):
16.01, 10118, 10127, 10816, 10856, 10868, 10912, 19022 :
The upper pane prints the selected text.
The lower pane prints the entire file !!
I will try to search in the source, but I do not know where to look?
Do you know which functions handle printing?
Hello,Do I understand it correctly, that the issues are gone with the patch ?
thanks for patch, good catch.
Of course, the value of pane 1 (m_pControl) was overwritten with the value of pane 2 in cbEditor::Print(bool selectionOnly, PrintColourMode pcm, bool line_numbers) !!
I only tested it on svn19022 : it's good.
Happy New Year.Many thanks, the same to you !
If yes and there are no objections from other devs, I can commit it.Looks fine to me.
I can print, but scaling is a mess, so the text is nearly unreadable and I have to print all pages to get any output.If yes and there are no objections from other devs, I can commit it.Looks fine to me.
Jens are you able to print on linux?
My printing broke for some reason and there was another printing problem I'm no long able to look at. :(
Do I understand it correctly, that the issues are gone with the patch ?Yes, I print the selected text correctly with the upper and lower panes.
$ patch -p1 < /tmp/mozilla_obfuscated0/cbeditorPrint.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file sdk/cbeditor.cpp
Hunk #1 FAILED at 2939.
Hunk #2 FAILED at 2990.
2 out of 2 hunks FAILED -- saving rejects to file sdk/cbeditor.cpp.rej