diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-01-24 15:12:43 +0100 |
---|---|---|
committer | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-01-24 22:26:40 +0100 |
commit | 2dab78ee2199d70b951aee86b80aab4374cc7c4f (patch) | |
tree | 40e1d3652242d7edd900b5d3f73002e77954e92f /cui/source/tabpages/grfpage.cxx | |
parent | 0057803c228e10bc1247ebb35c28cfc9ffc4cc5c (diff) |
Change GetSavedValue() to return OUString
removed temporarily added OUString(...GetSavedValue()...) constructs again
Change-Id: I11477654d217a5ae127c1ef1b19cbff56ed052a6
Diffstat (limited to 'cui/source/tabpages/grfpage.cxx')
-rw-r--r-- | cui/source/tabpages/grfpage.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index bbe07837e139..1d3694b22a65 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -237,8 +237,8 @@ sal_Bool SvxGrfCropPage::FillItemSet(SfxItemSet &rSet) { const SfxItemPool& rPool = *rSet.GetPool(); sal_Bool bModified = sal_False; - if( OUString(aWidthMF.GetSavedValue()) != aWidthMF.GetText() || - OUString(aHeightMF.GetSavedValue()) != aHeightMF.GetText() ) + if( aWidthMF.GetSavedValue() != aWidthMF.GetText() || + aHeightMF.GetSavedValue() != aHeightMF.GetText() ) { sal_uInt16 nW = rPool.GetWhich( SID_ATTR_GRAF_FRMSIZE ); FieldUnit eUnit = MapToFieldUnit( rSet.GetPool()->GetMetric( nW )); @@ -256,9 +256,9 @@ sal_Bool SvxGrfCropPage::FillItemSet(SfxItemSet &rSet) aSz = (const SvxSizeItem&)GetItemSet().Get( nW ); Size aTmpSz( aSz.GetSize() ); - if( aWidthMF.GetText() != OUString(aWidthMF.GetSavedValue()) ) + if( aWidthMF.GetText() != aWidthMF.GetSavedValue() ) aTmpSz.Width() = lcl_GetValue( aWidthMF, eUnit ); - if( aHeightMF.GetText() != OUString(aHeightMF.GetSavedValue()) ) + if( aHeightMF.GetText() != aHeightMF.GetSavedValue() ) aTmpSz.Height() = lcl_GetValue( aHeightMF, eUnit ); aSz.SetSize( aTmpSz ); aWidthMF.SaveValue(); |