summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-27 14:09:18 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-27 14:29:54 +0200
commit9328df9598286a94f0cf097462045a3c0a5721fc (patch)
tree56ce62bca4ff1fa4ac2e3533bd8f322c27199112
parent2a0118a98fc39dfed56fb7904733f63f6a2d6fe8 (diff)
sd tiled rendering: avoid showing wrap around dialog
Change-Id: Id977c3a17f5e34d086ee3b68fa9ad2969f9d24c2
-rw-r--r--sd/source/ui/view/Outliner.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 24031eff997c..60873d00a0ef 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -1098,6 +1098,14 @@ bool Outliner::ShowWrapArroundDialog()
// Spell checking needs the dialog, too.
bShowDialog = (meMode == SPELL);
+ boost::shared_ptr<ViewShell> pViewShell(mpWeakViewShell.lock());
+ if (pViewShell && pViewShell->GetDoc()->isTiledRendering())
+ {
+ // Wrap around without asking anything.
+ bShowDialog = false;
+ bDoWrapArround = true;
+ }
+
if (bShowDialog)
{
// The question text depends on the search direction.