1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/deskutils/kdissert/files/patch-src__kdissert__canvasview__DCanvasView.cpp
Volker Stolz 4b826d98ce Update to 1.0.5
PR:		ports/87735
Submitted by:	Ports Fury
2005-10-28 13:29:21 +00:00

19 lines
764 B
C++

--- 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) {