This commit is contained in:
David Rose 2009-11-09 18:28:18 +00:00
parent bfc08d6543
commit b1e21add06

View File

@ -17,6 +17,7 @@
#include "pnmWriter.h" #include "pnmWriter.h"
#include "pnmBrush.h" #include "pnmBrush.h"
#include "config_pnmimage.h" #include "config_pnmimage.h"
#include <algorithm>
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: PNMImage::Constructor // Function: PNMImage::Constructor
@ -1124,7 +1125,7 @@ make_histogram(PNMImage::Histogram &histogram) {
pixels.push_back(PixelSpecCount((*hi).first, (*hi).second)); pixels.push_back(PixelSpecCount((*hi).first, (*hi).second));
} }
} }
sort(pixels.begin(), pixels.end()); ::sort(pixels.begin(), pixels.end());
histogram.swap(pixels, hist_map); histogram.swap(pixels, hist_map);
} }