summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/applab.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-05-12 21:31:15 +0200
committerMichael Stahl <mstahl@redhat.com>2017-05-12 23:41:27 +0200
commit2308bea5ba38250133d7e344484e688ecaab6d8d (patch)
treefe17830c0df32c514f006add42a83e3372d952a4 /sw/source/uibase/app/applab.cxx
parent566f6d46056742d7d703f41d8b1596405031c5c3 (diff)
sw: change SwCursorShell::Pop() parameter from meaningless bool to enum
Change-Id: Iadc660025e1501118cb0a659d92d42af924b1c6f
Diffstat (limited to 'sw/source/uibase/app/applab.cxx')
-rw-r--r--sw/source/uibase/app/applab.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/applab.cxx b/sw/source/uibase/app/applab.cxx
index 208cbeb6cec4..8fe5e3493e4c 100644
--- a/sw/source/uibase/app/applab.cxx
+++ b/sw/source/uibase/app/applab.cxx
@@ -327,7 +327,7 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel)
pSh->Push();
pSh->SttDoc();
bool bInFly = nullptr != pSh->WizardGetFly();
- pSh->Pop( bInFly );
+ pSh->Pop((bInFly) ? SwCursorShell::PopMode::DeleteStack : SwCursorShell::PopMode::DeleteCurrent);
if( bInFly )
pSh->EndDoc(true); // select all content
@@ -354,7 +354,7 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel)
pSh->EndDoc(true); // Select everything in the frame
pSh->InsertSection(aSect);
}
- pSh->Pop( false );
+ pSh->Pop(SwCursorShell::PopMode::DeleteCurrent);
}
}
}