SwXTextPortion has 4 properties whose names start with "Ruby"

Change-Id: Ic90bd3de5fbe1e9c211e61b04cdb4149437fa325
This commit is contained in:
Michael Stahl 2013-03-20 14:16:08 +01:00
parent 631eb6141b
commit b19c601bc4

View file

@ -763,7 +763,7 @@ beans::PropertyState SwXTextPortion::getPropertyState(const OUString& rPropertyN
throw uno::RuntimeException(); throw uno::RuntimeException();
if (GetTextPortionType() == PORTION_RUBY_START && if (GetTextPortionType() == PORTION_RUBY_START &&
rPropertyName.startsWith("Ruby")) //TODO: startsWith or ==? rPropertyName.startsWith("Ruby"))
{ {
eRet = beans::PropertyState_DIRECT_VALUE; eRet = beans::PropertyState_DIRECT_VALUE;
} }
@ -794,7 +794,7 @@ uno::Sequence< beans::PropertyState > SwXTextPortion::getPropertyStates(
beans::PropertyState* pStates = aRet.getArray(); beans::PropertyState* pStates = aRet.getArray();
for(sal_Int32 nProp = 0; nProp < rPropertyNames.getLength();nProp++) 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; pStates[nProp] = beans::PropertyState_DIRECT_VALUE;
} }
} }