r19727 by fschmid - Compile warning fix

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 4 09:02:22 UTC 2015


Author: fschmid
Date: Sun Jan  4 09:02:21 2015
New Revision: 19727

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19727
Log:
Compile warning fix

Modified:
    trunk/Scribus/scribus/third_party/lib2geom/poly.h

Modified: trunk/Scribus/scribus/third_party/lib2geom/poly.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19727&path=/trunk/Scribus/scribus/third_party/lib2geom/poly.h
==============================================================================
--- trunk/Scribus/scribus/third_party/lib2geom/poly.h (original)
+++ trunk/Scribus/scribus/third_party/lib2geom/poly.h Sun Jan  4 09:02:21 2015
@@ -19,7 +19,7 @@
     
     Poly operator+(const Poly& p) const {
         Poly result;
-        const unsigned out_size = std::max(size(), p.size());
+	//    const unsigned out_size = std::max(size(), p.size());
         const unsigned min_size = std::min(size(), p.size());
         //result.reserve(out_size);
         
@@ -30,7 +30,7 @@
             result.push_back((*this)[i]);
         for(unsigned i = min_size; i < p.size(); i++)
             result.push_back(p[i]);
-        assert(result.size() == out_size);
+	 //   assert(result.size() == out_size);
         return result;
     }
     Poly operator-(const Poly& p) const {




More information about the scribus-commit mailing list