summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtw8esh.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-19 11:20:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-19 21:45:02 +0200
commit6e531f337b27e0979cce844c013352d05ef5281e (patch)
tree0c4820c1ce0b8e9f05707a3d0ff38d49f7016cdd /sw/source/filter/ww8/wrtw8esh.cxx
parentca8f4a66e44aed731646066241cf2225bb9f8c2a (diff)
SwBreakIt::m_xBreak is always available
this all is a hold over from the initial tentitive changeover to using it in the first place Change-Id: I70e28023798d8ea637c61f9fac252bc698e8100d Reviewed-on: https://gerrit.libreoffice.org/36683 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/wrtw8esh.cxx')
-rw-r--r--sw/source/filter/ww8/wrtw8esh.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx
index 0e1ebe84c0e2..8bf4fc9eac0d 100644
--- a/sw/source/filter/ww8/wrtw8esh.cxx
+++ b/sw/source/filter/ww8/wrtw8esh.cxx
@@ -1086,10 +1086,8 @@ void MSWord_SdrAttrIter::NextPara( sal_Int32 nPar )
pEditPool = aSet.GetPool();
eNdChrSet = ItemGet<SvxFontItem>(aSet,EE_CHAR_FONTINFO).GetCharSet();
- if( g_pBreakIt->GetBreakIter().is() )
- nScript = g_pBreakIt->GetBreakIter()->getScriptType( pEditObj->GetText(nPara), 0);
- else
- nScript = i18n::ScriptType::LATIN;
+ assert(g_pBreakIt && g_pBreakIt->GetBreakIter().is());
+ nScript = g_pBreakIt->GetBreakIter()->getScriptType( pEditObj->GetText(nPara), 0);
pEditObj->GetCharAttribs( nPara, aTextAtrArr );
nAktSwPos = SearchNext( 1 );