diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-01-14 10:09:40 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-01-15 10:09:50 +0100 |
commit | 1367092fa695456c430b5d1a63dd890382b58ccf (patch) | |
tree | 2f9656140bcdc241017019f6c38730fe5811e05d /sw/source/uibase/shells/textdrw.cxx | |
parent | 4e35cf055d3074beaef7bf573fafefe4adb2a37e (diff) |
sw: Rename SwFEShell::{IsObjSelected -> GetSelectedObjCount}
The method returns the number of selected objects,
not just a bool indicating whether any (or a particular)
object is selected, other than the
SwFEShell::IsObjSelected variant that takes a
`const SdrObject&` param.
Rename the method to make that clearer.
Change-Id: I30afec5322d2e6f1d31e5bc0ca6c252faa1fb4d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180223
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/shells/textdrw.cxx')
-rw-r--r-- | sw/source/uibase/shells/textdrw.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/textdrw.cxx b/sw/source/uibase/shells/textdrw.cxx index a4d075daef3b..688cc4058261 100644 --- a/sw/source/uibase/shells/textdrw.cxx +++ b/sw/source/uibase/shells/textdrw.cxx @@ -114,7 +114,7 @@ void SwBaseShell::InsertURLButton(const OUString& rURL, const OUString& rTarget, #endif } - if (rSh.IsObjSelected()) + if (rSh.GetSelectedObjCount()) { rSh.UnSelectFrame(); } |