Page 1 of 1

Text lines are wrapped on separate pages (Page Break Action)

Posted: Sat May 14, 2022 3:36 pm
by Vitalii
Hi,
I have trouble with Page Break action. When I apply it, text lines are wrapped on each next page(s), see screenshot.
Strange, but there is no effect when I checked "Keep lines together" and "Keep with next".
I'm using Style Templates in SRichViewEdit.

Please help)

Re: Text lines are wrapped on separate pages (Page Break Action)

Posted: Sat May 14, 2022 6:35 pm
by Sergey Tkachenko
Do you mean that if you apply this action one time, it adds many page breaks?

Re: Text lines are wrapped on separate pages (Page Break Action)

Posted: Sat May 14, 2022 7:45 pm
by Vitalii
Yes. I typed a long paragraph of text in a few lines. Then I set cursor to the start position and press the button with TrvActionInsertPageBreak. I do not perform any other (special) formatting actions (

Re: Text lines are wrapped on separate pages (Page Break Action)

Posted: Sun May 22, 2022 11:32 am
by Vitalii
Any updates on the issue?

Re: Text lines are wrapped on separate pages (Page Break Action)

Posted: Mon May 23, 2022 4:43 pm
by Sergey Tkachenko
I confirm the bug.
It will be fixed in the next update.
Quick fix: open SclRView.pas, find

Code: Select all

      ElementNotFit :=
        RichViewEdit.PageBreaksBeforeItems[srvCurItem.ItemNo] or
change to:

Code: Select all

      ElementNotFit :=
        ((CurDrawItem.Offs <= RichViewEdit.GetOffsBeforeItem(srvCurItem.ItemNo)) and
        RichViewEdit.PageBreaksBeforeItems[srvCurItem.ItemNo]) or

Re: Text lines are wrapped on separate pages (Page Break Action)

Posted: Mon May 30, 2022 9:02 am
by Vitalii
Thanks!

Re: Text lines are wrapped on separate pages (Page Break Action)

Posted: Fri Jun 03, 2022 1:02 pm
by Sergey Tkachenko
Fixed in the todays update (ScaleRichView 11.3)