From: Jon A. Cruz Date: Sat, 3 Jul 2010 23:02:57 +0000 (-0700) Subject: Make order of 'auto' swatches match order in document. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9281862d9b824ab1fa7ce80b4b22302af26c8f43;p=inkscape.git Make order of 'auto' swatches match order in document. --- diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp index 755a10519..70e3800a0 100644 --- a/src/ui/dialog/swatches.cpp +++ b/src/ui/dialog/swatches.cpp @@ -14,6 +14,7 @@ #include #include +#include #include //for GTK_RESPONSE* types #include @@ -805,6 +806,7 @@ static void recalcSwatchContents(SPDocument* doc, } if ( !newList.empty() ) { + std::reverse(newList.begin(), newList.end()); for ( std::vector::iterator it = newList.begin(); it != newList.end(); ++it ) { SPGradient* grad = *it;