From: joncruz Date: Fri, 14 Sep 2007 04:41:34 +0000 (+0000) Subject: Fixed min/max confusion bug X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e25566bf98489ba1c8997658803221b4c2e72b25;p=inkscape.git Fixed min/max confusion bug --- diff --git a/src/libnr/nr-object.h b/src/libnr/nr-object.h index f39814b0d..269130284 100644 --- a/src/libnr/nr-object.h +++ b/src/libnr/nr-object.h @@ -91,7 +91,7 @@ private: NRObject(NRObject const &); // no copy void operator=(NRObject const &); // no assign - void *operator new(size_t size, void *placement) { return placement; } + void *operator new(size_t size, void *placement) { (void)size; return placement; } }; struct NRObjectClass { diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h index 439538e29..fc4d617df 100644 --- a/src/libnr/nr-rect.h +++ b/src/libnr/nr-rect.h @@ -254,7 +254,7 @@ struct NRMatrix; struct NRRect { NRRect() {} NRRect(NR::Coord xmin, NR::Coord ymin, NR::Coord xmax, NR::Coord ymax) - : x0(xmin), y0(ymin), x1(xmin), y1(ymin) + : x0(xmin), y0(ymin), x1(xmax), y1(ymax) {} explicit NRRect(NR::Rect const &rect); explicit NRRect(NR::Maybe const &rect);