diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-17 10:15:12 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 11:34:17 +0100 |
commit | 149ee09c7aa2e303b625cc6b82b40a8c27613916 (patch) | |
tree | 05a1e0e82f6d196184659d2d8d07c58f4183a8d1 | |
parent | e35bc27fdc648ee433c755312fa79263b49f1339 (diff) |
ensure valid iterator even with empty content.
Change-Id: Icd2e193b66ace8212d1af086192abf0c43c5953f
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 9f78d5896f1a..ab01e7d3f49d 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -621,6 +621,7 @@ void SidebarController::SwitchToDeck ( } else { + iPanel = rCurrentPanels.end(); for (auto a = rCurrentPanels.begin(); a != rCurrentPanels.end(); ++a) { iPanel = a; |