From e1439ba12c16c3564b6b2801481f14f907b119cb Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sat, 3 Jul 2010 16:02:57 -0700 Subject: Make order of 'auto' swatches match order in document. (bzr r9563) --- src/ui/dialog/swatches.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui') 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; -- cgit v1.2.3