From b19c601bc4e4700b9d193a86795424e847759b4b Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 20 Mar 2013 14:16:08 +0100 Subject: [PATCH] SwXTextPortion has 4 properties whose names start with "Ruby" Change-Id: Ic90bd3de5fbe1e9c211e61b04cdb4149437fa325 --- sw/source/core/unocore/unoport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx index 89f40f6daa68..caea251ac319 100644 --- a/sw/source/core/unocore/unoport.cxx +++ b/sw/source/core/unocore/unoport.cxx @@ -763,7 +763,7 @@ beans::PropertyState SwXTextPortion::getPropertyState(const OUString& rPropertyN throw uno::RuntimeException(); if (GetTextPortionType() == PORTION_RUBY_START && - rPropertyName.startsWith("Ruby")) //TODO: startsWith or ==? + rPropertyName.startsWith("Ruby")) { eRet = beans::PropertyState_DIRECT_VALUE; } @@ -794,7 +794,7 @@ uno::Sequence< beans::PropertyState > SwXTextPortion::getPropertyStates( beans::PropertyState* pStates = aRet.getArray(); for(sal_Int32 nProp = 0; nProp < rPropertyNames.getLength();nProp++) { - if (pNames[nProp].startsWith("Ruby")) //TODO: startsWith or ==? + if (pNames[nProp].startsWith("Ruby")) pStates[nProp] = beans::PropertyState_DIRECT_VALUE; } }