From 9281862d9b824ab1fa7ce80b4b22302af26c8f43 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sat, 3 Jul 2010 16:02:57 -0700 Subject: [PATCH] Make order of 'auto' swatches match order in document. --- src/ui/dialog/swatches.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2