diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-09-06 11:37:53 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-09-07 12:55:44 +0200 |
commit | 8d36b558beb0c88d186b027f16c5d7d2da3afa59 (patch) | |
tree | 7d5eacb273fd8af322d349691ec52816d37c8052 /editeng | |
parent | 3faefaafa6c7e4b01fe85496f4f288b19c1caebd (diff) |
inheriting from a standard container is a bad idea
Change-Id: I3346d38c720158ba37456c689e7d7f83bef3079c
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index aa8c3fdb01b2..17de955d0785 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -1792,8 +1792,8 @@ sal_uInt16 ImpEditEngine::GetScriptType( const EditSelection& rSel ) const short nScriptType = 0; - sal_Int32 nStartPara = GetEditDoc().GetPos( aSel.Min().GetNode() ); - sal_Int32 nEndPara = GetEditDoc().GetPos( aSel.Max().GetNode() ); + sal_Int32 nStartPara = GetEditDoc().GetPos( aSel.Min().GetNode() ); + sal_Int32 nEndPara = GetEditDoc().GetPos( aSel.Max().GetNode() ); for ( sal_Int32 nPara = nStartPara; nPara <= nEndPara; nPara++ ) { @@ -1811,7 +1811,7 @@ sal_uInt16 ImpEditEngine::GetScriptType( const EditSelection& rSel ) const for ( size_t n = 0; n < rTypes.size(); n++ ) { if (rTypes[n].nStartPos <= nS && nE <= rTypes[n].nEndPos) - { + { if ( rTypes[n].nScriptType != i18n::ScriptType::WEAK ) { nScriptType |= GetItemScriptType ( rTypes[n].nScriptType ); |