fix wrong capitalization in case of non-standard hyphenation

Signed-off-by: Andras Timar <atimar@suse.com>
This commit is contained in:
Laszlo Nemeth
2011-07-11 14:09:52 +02:00
committed by Andras Timar
parent 5b27d98cd9
commit b26060d88b

View File

@@ -487,7 +487,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const ::rtl::OUStri
} }
case CAPTYPE_INITCAP: case CAPTYPE_INITCAP:
{ {
if (nHyphenationPosAlt == 0) if (nHyphenationPosAlt == -1)
repHyph = makeInitCap(repHyphlow, pCC); repHyph = makeInitCap(repHyphlow, pCC);
else else
repHyph = repHyphlow; repHyph = repHyphlow;