From 1e3c7b854baac2502bed72ff8e3e1b21b507735b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 1 Apr 2014 15:54:58 +0200 Subject: SwXStyle::getPropertyValue: don't try to read a float into a sal_Int32 The problem was that for the CharDiffHeight UNO property, SvxFontHeightItem::QueryValue() put a float to the returned uno::Any. When we noticed that it's not sal_Int16, we tried to read that into a sal_Int32 (which failed), and then wrote back the result to the uno::Any, that's how the result value was 0. Fix this by checking if reading the uno::Any into a sal_Int32 succeeds. Change-Id: Ie2269a24fe82ae241940811e7a2f5deaf9f1aeb0 --- sw/qa/unoapi/sw.sce | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/qa/unoapi') diff --git a/sw/qa/unoapi/sw.sce b/sw/qa/unoapi/sw.sce index cc6a35915a5e..4ea9fab1da1f 100644 --- a/sw/qa/unoapi/sw.sce +++ b/sw/qa/unoapi/sw.sce @@ -16,10 +16,10 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -# FIXME port to FillAttributes -o sw.CharacterStyle -# FIXME port to FillAttributes -o sw.ConditionalParagraphStyle +-o sw.CharacterStyle +-o sw.ConditionalParagraphStyle -o sw.PageStyle -# FIXME port to FillAttributes -o sw.ParagraphStyle +-o sw.ParagraphStyle #i111197 -o sw.SwAccessibleDocumentPageView #i86751 -o sw.SwAccessibleDocumentView -o sw.SwAccessibleEndnoteView -- cgit