forked from macports/macports-ports
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pdfpc: update to 4.6.0, fix build on powerpc
- Loading branch information
1 parent
d53055d
commit 90841f1
Showing
2 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
graphics/pdfpc/files/18beaecbbcc066e0d4c889b3aa3ecaa7351f7768.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 18beaecbbcc066e0d4c889b3aa3ecaa7351f7768 Mon Sep 17 00:00:00 2001 | ||
From: Evgeny Stambulchik <[email protected]> | ||
Date: Tue, 25 Apr 2023 16:11:25 +0300 | ||
Subject: [PATCH] Create Lists of nullable types | ||
|
||
--- | ||
src/classes/drawings/drawing_commands.vala | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/src/classes/drawings/drawing_commands.vala b/src/classes/drawings/drawing_commands.vala | ||
index 77e56e6d..c305a8c5 100644 | ||
--- src/classes/drawings/drawing_commands.vala | ||
+++ src/classes/drawings/drawing_commands.vala | ||
@@ -54,8 +54,8 @@ namespace pdfpc { | ||
} | ||
|
||
public void clear() { | ||
- this.drawing_commands = new List<DrawingCommand>(); | ||
- this.redo_commands = new List<DrawingCommand>(); | ||
+ this.drawing_commands = new List<DrawingCommand?>(); | ||
+ this.redo_commands = new List<DrawingCommand?>(); | ||
} | ||
|
||
public void add_line(bool is_eraser, | ||
@@ -70,7 +70,7 @@ namespace pdfpc { | ||
|
||
// After adding a new line you can no longer redo the old | ||
// path. | ||
- this.redo_commands = new List<DrawingCommand>(); // clear | ||
+ this.redo_commands = new List<DrawingCommand?>(); // clear | ||
|
||
bool new_path = true; | ||
double epsilon = 1e-4; // Less than 0.1 pixel for a 1000x1000 img |