I'm running Linux Mint 20.3 Cinnamon 5.2.7.
I'm using Code::Blocks
Release 20.03 rev 11997 (2020-03-28 13:56:24) gcc 9.3.0 Linux/unicode - 64 bit
I select Print from the File menu, Active editor, black and white, Print, in the print dialog I select Print to File, and Preview.
The file is mangled. Attached is the .pdf it generates under Linux Mint. Under KDE Neon, no .pdf file is produced.
Discussion in the forum and other printing test from Mint 18.
Last edit: Miguel Gimenez 2022-02-25
Looks like the printing method, wxStyledTextCtrl::FormatRange(), is Windows only. From the documentation:
Surprisingly, there are no crashes on Linux and something is printed.
See forum :
https://forums.codeblocks.org/index.php/topic,24910.msg169776/topicseen.html#msg169776
I created an issue in wxWidgets, but Vadz says the problem is inside Scintilla.
I have been looking in the Scintilla tickets, but have not found any related to this.
Thanks.
This problem is very very old, I found a message from r10922 ! (January 16, 2017)
printer
I just did a comparative test :
I can't use the 'wx-305 (gtk-3.0)' pair.
Conclusion: the couple 'wx-305 , gtk-2.0' is the culprit.
Last edit: LETARTARE 2022-04-11