Author Topic: Print error  (Read 9057 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Print error
« Reply #15 on: January 16, 2017, 09:46:50 pm »
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. :(
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 I remember it correctly I tried to work around this years ago and indeed I found a oatch against rev 4905, which is about nine years old.
I will see if it can be used or overworked to enhance/enable printing on Linux.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Print error
« Reply #16 on: January 16, 2017, 10:37:32 pm »
I'm trying to print to pdf and the resulting pdf is pretty messed up. Rectangles around every line, text is unreadable because it is overlapping. Cannot switch to portrait mode. I'm not sure all problems are caused by C::B though :(.
I'm not printing at all so I don't care too much about this feature.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Print error
« Reply #17 on: January 16, 2017, 11:14:54 pm »
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.

CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Print error
« Reply #18 on: February 22, 2017, 12:13:54 am »
Good evening,
I use again today C::B svn10922 to print.
Printing works correctly on a split window with line numbers, but after printing the line numbers have disappeared!

By searching 'cbEditor::Print (...)', I think I have found the reason
1- missing backup 'getEdgeMode()'
2- need to call 'm_pData->SetLineNumberColWidth(m_pControl && m_pControl2)' to restore the line numbers on the affected windows (1 or 2).

The split working properly after the correction.
Here is the correction since svn10922.

« Last Edit: April 05, 2022, 04:02:19 pm by LETARTARE »
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Print error
« Reply #19 on: February 22, 2017, 12:41:04 am »
Patch doesn't apply, please make it against recent trunk
Code
$ 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Print error
« Reply #20 on: February 22, 2017, 10:49:38 am »
Hello,
here's the fix for svn11019
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Print error
« Reply #21 on: February 25, 2017, 09:10:13 pm »
In svn, thanks...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]