summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index d74e8fdad..0bf442b7a 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -26,14 +26,13 @@
# include "config.h"
#endif
+#include "ui/dialog/dialog-manager.h"
#include <glibmm/i18n.h>
#include <sigc++/functors/mem_fun.h>
#include <2geom/transforms.h>
#include <2geom/rect.h>
-#include "ui/dialog/dialog-manager.h"
-
#include "box3d-context.h"
#include "color.h"
#include "desktop-events.h"
@@ -812,7 +811,7 @@ SPDesktop::push_current_zoom (std::list<Geom::Rect> &history)
{
Geom::Rect area = get_display_area();
- if (history.empty() || history.front() == area) {
+ if (history.empty() || history.front() != area) {
history.push_front(area);
}
}