replaced std::sort with stable_sort to avoid sorting errors with objects in the same...
authorIngo Ruhnke <grumbel@gmx.de>
Sun, 30 May 2004 15:25:01 +0000 (15:25 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Sun, 30 May 2004 15:25:01 +0000 (15:25 +0000)
SVN-Revision: 1366

src/screen/drawing_context.cpp

index efee7a5..52bb81e 100644 (file)
@@ -263,7 +263,7 @@ DrawingContext::draw_filled_rect(DrawingRequest& request)
 void
 DrawingContext::do_drawing()
 {
-  std::sort(drawingrequests.begin(), drawingrequests.end());
+  std::stable_sort(drawingrequests.begin(), drawingrequests.end());
 
   for(DrawingRequests::iterator i = drawingrequests.begin();
       i != drawingrequests.end(); ++i) {