diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-01 23:26:00 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-02 20:18:01 +0100 |
commit | b39275d483e5b1b79c0c7aaaf915fde9ca15857e (patch) | |
tree | 9e852ad5c8af1ea1716acda27eea2a889f7dd953 /editeng | |
parent | 7e9df2ba484a29c74ee5ccd04972712ecb98802e (diff) |
Use EditSelection::HasRange
Change-Id: I6be00dc99e40bb190647cd5007431d4cca750024
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 9201c71bb869..06a94e5833ac 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -1958,7 +1958,7 @@ bool ImpEditEngine::SpellSentence(EditView& rEditView, pSpellInfo->aLastSpellContentSelections.clear(); rToFill.clear(); //if no selection previously exists the range is extended to the end of the object - if(aCurSel.Min() == aCurSel.Max()) + if (!aCurSel.HasRange()) { ContentNode* pLastNode = aEditDoc.GetObject( aEditDoc.Count()-1); aCurSel.Max() = EditPaM(pLastNode, pLastNode->Len()); @@ -2034,7 +2034,7 @@ void ImpEditEngine::AddPortionIterated( Reference< XSpellAlternatives > xAlt, ::svx::SpellPortions& rToFill) { - if(rSel.Min() != rSel.Max()) + if (rSel.HasRange()) { if(xAlt.is()) { |