From 7935a19b220458441544697be465366839d8d4e0 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Thu, 9 Jun 2022 03:02:02 -0400 Subject: [PATCH] Remove ensureUpToDate from the export dialog This statement shouldn't generally be needed when being called from the selection modified, the document is already up to date. Fixes https://gitlab.com/inkscape/inkscape/-/issues/3600 --- src/ui/dialog/export-batch.cpp | 2 -- src/ui/dialog/export-single.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/dialog/export-batch.cpp b/src/ui/dialog/export-batch.cpp index 2792e866f2..a98b6a0d61 100644 --- a/src/ui/dialog/export-batch.cpp +++ b/src/ui/dialog/export-batch.cpp @@ -301,8 +301,6 @@ void BatchExport::refreshItems() { if (!_desktop || !_document) return; - _document->ensureUpToDate(); - // Create New List of Items std::set itemsList; std::set pageList; diff --git a/src/ui/dialog/export-single.cpp b/src/ui/dialog/export-single.cpp index 592f8f65ce..d3b7c6bb54 100644 --- a/src/ui/dialog/export-single.cpp +++ b/src/ui/dialog/export-single.cpp @@ -149,6 +149,7 @@ void SingleExport::selectionChanged(Inkscape::Selection *selection) if (!_desktop || _desktop->getSelection() != selection) { return; } + Glib::ustring pref_key_name = prefs->getString("/dialogs/export/exportarea/value"); for (auto [key, name] : selection_names) { if (name == pref_key_name && current_key != key && key != SELECTION_SELECTION) { @@ -279,7 +280,6 @@ void SingleExport::refreshArea() { if (_document) { Geom::OptRect bbox; - _document->ensureUpToDate(); switch (current_key) { case SELECTION_SELECTION: -- GitLab