diff options
author | vs <vs@FreeBSD.org> | 2005-10-28 21:29:21 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-10-28 21:29:21 +0800 |
commit | 67fb3fb685ac9230e755dd6521e4a1ee7c016ae9 (patch) | |
tree | 3aadb40e6ddc9bdc24c9478ab5dd5bd1a8a2d1f5 /deskutils/kdissert/files | |
parent | 98c6db061a20835636c7d05097e8ecda38f59137 (diff) | |
download | freebsd-ports-gnome-67fb3fb685ac9230e755dd6521e4a1ee7c016ae9.tar.gz freebsd-ports-gnome-67fb3fb685ac9230e755dd6521e4a1ee7c016ae9.tar.zst freebsd-ports-gnome-67fb3fb685ac9230e755dd6521e4a1ee7c016ae9.zip |
Update to 1.0.5
PR: ports/87735
Submitted by: Ports Fury
Diffstat (limited to 'deskutils/kdissert/files')
-rw-r--r-- | deskutils/kdissert/files/patch-src__kdissert__canvasview__DCanvasView.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deskutils/kdissert/files/patch-src__kdissert__canvasview__DCanvasView.cpp b/deskutils/kdissert/files/patch-src__kdissert__canvasview__DCanvasView.cpp new file mode 100644 index 000000000000..bfe86a63250f --- /dev/null +++ b/deskutils/kdissert/files/patch-src__kdissert__canvasview__DCanvasView.cpp @@ -0,0 +1,18 @@ +--- src/kdissert/canvasview/DCanvasView.cpp.orig Sat Oct 15 22:22:33 2005 ++++ src/kdissert/canvasview/DCanvasView.cpp Tue Oct 18 20:47:13 2005 +@@ -1466,6 +1466,7 @@ + if (x2>canvas()->width()-limit) dx += extend+x2-limit; + if (y2>canvas()->height()-limit) dy += extend+y2-limit; + ++#if !(defined(__GNUC__) && (__GNUC__ < 3)) + // just for security: check for hard system limits + if (((double)canvas()->width()+dx) > (double)std::numeric_limits<typeof(canvas()->width())>::max() || ((double)canvas()->height()+dy) > (double)std::numeric_limits<typeof(canvas()->height())>::max()) { + static bool told(false); // should never happen, but say it once... +@@ -1473,6 +1474,7 @@ + told = true; + return; + } ++#endif + + // expand if necessary + if (dx>0 || dy>0) { |