austinvernsonger / keynote-nf

Automatically exported from code.google.com/p/keynote-nf
0 stars 0 forks source link

Bug when copy/pasting Paragraph Attributes #406

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the bug: when copy/pasting Paragraph Attributes, the Left Indent 
is replaced with the First Line Indent, which is set to 0

What steps will reproduce the problem?
1. create a new note
2. add two long paragraphs
3. set the Paragraph Attributes of the first paragraph to Left=10, Right=20, 
First=30
4. copy/paste these Paragraph Attributes to the second paragraph

What is the expected output? What do you see instead?
--> expected: same Paragraph Attributes
--> instead: Left=30, Right=20, First=0

What version are you using? On what operating system?
--> Keynote NF 1.7.6 on XP sp3

Original issue reported on code.google.com by krommen...@gmail.com on 19 Aug 2011 at 7:33

GoogleCodeExporter commented 9 years ago
Please, could you test a more actual version, at leat 1.7.8. Or better, 1.7.9.1 
?

Thanks

Original comment by dpra...@gmail.com on 19 Aug 2011 at 7:39

GoogleCodeExporter commented 9 years ago
Ok.
Tested with 1.7.9 beta 3; does exactly as I described.

Original comment by krommen...@gmail.com on 21 Aug 2011 at 12:22

GoogleCodeExporter commented 9 years ago
Here is a fix for this problem.  It may not be the best, but it works.  

in kn_NoteObj.pas > procedure ParaAttrsKNT2RX - Lines 516-534 or so

Move "RxFmt.Numbering := Numbering" to the top or above the Indent properties 
so that it is pasted first.  

EXAMPLE:
******************************
procedure ParaAttrsKNT2RX( const KntFmt : TkntParaAttributes; const RxFmt : 
TRxParaAttributes );
begin
  with KntFmt do
  begin
        RxFmt.Numbering := Numbering;  //TRY Putting Numbering first
    RxFmt.NumberingStyle := NumberingStyle;
    RxFmt.FirstIndent := FirstIndent;
    RxFmt.LeftIndent := LeftIndent;
    RxFmt.LineSpacing := LineSpacing;
    RxFmt.LineSpacingRule := LineSpacingRule;
    RxFmt.Alignment := Alignment;
    RxFmt.NumberingTab := NumberingTab;
    RxFmt.RightIndent := RightIndent;
    RxFmt.SpaceAfter := SpaceAfter;
    RxFmt.SpaceBefore := SpaceBefore;
    RxFmt.TabCount := TabCount;
    // [x] Tab[index : integer]
  end;
end; // ParaAttrsKNT2RX

Original comment by drmoorma...@gmail.com on 2 Sep 2011 at 7:43

GoogleCodeExporter commented 9 years ago
Fixed in revision r173

Thanks drmoorman88, it worked ok

Original comment by dpra...@gmail.com on 7 Jan 2013 at 5:11

GoogleCodeExporter commented 9 years ago
I have just released a new version of KeyNote NF: 1.7.9 Beta 4

Could you verify and confirm if the issues are correctly resolved?
Thanks
Daniel

Original comment by dpra...@gmail.com on 7 Jan 2013 at 7:43

GoogleCodeExporter commented 9 years ago
This issue is resolved correctly in 1.7.9b4

Original comment by krommen...@gmail.com on 8 Jan 2013 at 4:00