Commit 8149cd1
Fix small rotation bugs
If some renderer has not null rotation, but for some reasons this
rotation wasn't applied, iText was failing with exception trying to
restore not saved graphic state, because of missing check.
RotationUtils#retrieveRotatedLayoutWidth was returning full element
width, but is expecting to return only content width.
Also corresponding tests where added, and already done TODO was
removed
Autoported commit.
Original commit hash: [427e34f]1 parent 898da01 commit 8149cd1
File tree
12 files changed
+56
-5
lines changed- itext.tests/itext.layout.tests
- itext/layout
- resources/itext/layout
- LinkTest
- MinWidthTest
- RotationTest
- itext/itext.layout/itext/layout/renderer
12 files changed
+56
-5
lines changedLines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
601 | | - | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
616 | 662 | | |
617 | 663 | | |
618 | 664 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| |||
0 commit comments