summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drawinglayer/source/primitive2d/textbreakuphelper.cxx18
-rw-r--r--include/drawinglayer/primitive2d/textbreakuphelper.hxx3
2 files changed, 1 insertions, 20 deletions
diff --git a/drawinglayer/source/primitive2d/textbreakuphelper.cxx b/drawinglayer/source/primitive2d/textbreakuphelper.cxx
index 91cde4f9c346..fa6b213cc0c1 100644
--- a/drawinglayer/source/primitive2d/textbreakuphelper.cxx
+++ b/drawinglayer/source/primitive2d/textbreakuphelper.cxx
@@ -260,24 +260,6 @@ namespace drawinglayer
}
break;
}
- case BreakupUnit::Sentence:
- {
- sal_Int32 nNextSentenceBreak(xBreakIterator->endOfSentence(rTxt, nTextPosition, rLocale));
- sal_Int32 a(nTextPosition);
-
- for(; a < nTextPosition + nTextLength; a++)
- {
- if(a == nNextSentenceBreak)
- {
- breakupPortion(aTempResult, nCurrent, a - nCurrent, false);
- nCurrent = a;
- nNextSentenceBreak = xBreakIterator->endOfSentence(rTxt, a + 1, rLocale);
- }
- }
-
- breakupPortion(aTempResult, nCurrent, a - nCurrent, false);
- break;
- }
}
mxResult = aTempResult;
diff --git a/include/drawinglayer/primitive2d/textbreakuphelper.hxx b/include/drawinglayer/primitive2d/textbreakuphelper.hxx
index 44dcd71efb20..e63c3f61ae0b 100644
--- a/include/drawinglayer/primitive2d/textbreakuphelper.hxx
+++ b/include/drawinglayer/primitive2d/textbreakuphelper.hxx
@@ -33,8 +33,7 @@ namespace drawinglayer
enum class BreakupUnit
{
Character,
- Word,
- Sentence
+ Word
};
class DRAWINGLAYER_DLLPUBLIC TextBreakupHelper