diff options
author | Mathias Bauer <mba@openoffice.org> | 2010-01-05 14:46:45 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2010-01-05 14:46:45 +0100 |
commit | 62b69e958ced6717e908f541cc84a83ec94242f3 (patch) | |
tree | fe6b6fb4e2763c706de7d6ef17b4cbfe2fefff4a /svx | |
parent | 6fa6f4fa24eac5b3530360bc485edc7d596e26bd (diff) | |
parent | 0de34b05f3c1a0409d23b63b9e69d4d7abbe1090 (diff) |
merge commit for m68
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/AccessibleStaticTextBase.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 5 | ||||
-rw-r--r-- | svx/source/sdr/primitive2d/sdrattributecreator.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.src | 4 | ||||
-rw-r--r-- | svx/source/unodraw/UnoGraphicExporter.cxx | 4 | ||||
-rw-r--r-- | svx/source/unodraw/unoshtxt.cxx | 3 |
6 files changed, 14 insertions, 8 deletions
diff --git a/svx/source/accessibility/AccessibleStaticTextBase.cxx b/svx/source/accessibility/AccessibleStaticTextBase.cxx index 333c555bb746..ddc77e9e0ba4 100644 --- a/svx/source/accessibility/AccessibleStaticTextBase.cxx +++ b/svx/source/accessibility/AccessibleStaticTextBase.cxx @@ -1016,9 +1016,9 @@ namespace accessibility const beans::PropertyValue* pItr = aIntersectionSeq.getConstArray(); const beans::PropertyValue* pEnd = pItr + aIntersectionSeq.getLength(); const beans::PropertyValue* pFind = ::std::find_if( pItr, pEnd, ::std::bind2nd( PropertyValueEqualFunctor(), boost::cref( pDefAttr[i] ) ) ); - if ( pFind == pEnd && pFind->Handle != 0) + if ( pFind == pEnd && pDefAttr[i].Handle != 0) { - aDiffVec.push_back( *pFind ); + aDiffVec.push_back( pDefAttr[i] ); } } diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 6f2f7cdd2ebd..a07cf1f254d2 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -2761,8 +2761,9 @@ void SvxRuler::EvalModifier() case KEY_MOD1: { const RulerType eType = GetDragType(); nDragType = DRAG_OBJECT_SIZE_PROPORTIONAL; - if(RULER_TYPE_BORDER == eType || RULER_TYPE_TAB == eType|| - RULER_TYPE_MARGIN1&&pColumnItem) + if( RULER_TYPE_TAB == eType || + ( ( RULER_TYPE_BORDER == eType || RULER_TYPE_MARGIN1 == eType ) && + pColumnItem ) ) PrepareProportional_Impl(eType); break; } diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx b/svx/source/sdr/primitive2d/sdrattributecreator.cxx index f0441def1b0c..ca19c8594e2f 100644 --- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx +++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx @@ -556,7 +556,7 @@ namespace drawinglayer const XGradient& rGradient = ((XFillFloatTransparenceItem*)pGradientItem)->GetGradientValue(); const sal_uInt8 nStartLuminance(rGradient.GetStartColor().GetLuminance()); const sal_uInt8 nEndLuminance(rGradient.GetEndColor().GetLuminance()); - const bool bCompletelyTransparent(0xff == nStartLuminance == nEndLuminance); + const bool bCompletelyTransparent(0xff == nStartLuminance && 0xff == nEndLuminance); if(!bCompletelyTransparent) { diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.src b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.src index 601f2594a080..7803592de2ee 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.src +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.src @@ -68,13 +68,13 @@ ModalDialog DLG_CHINESETRANSLATION Moveable = TRUE ; SVLook = TRUE; - Text [ en-US ] = "Chinese Translation"; + Text [ en-US ] = "Chinese Conversion"; FixedLine FL_DIRECTION { Pos = MAP_APPFONT ( COL_1 , ROW_1 ) ; Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ; - Text [ en-US ] = "Translation direction"; + Text [ en-US ] = "Conversion direction"; }; DIRECTION_RADIOBUTTONS( COL_2, ROW_2, (FULL_WIDTH - COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) ) diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index db8c2f2fc314..ebd8f83e00f0 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -837,7 +837,9 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, if ( aGraphic.GetType() == GRAPHIC_BITMAP ) { Size aSizePixel( aGraphic.GetSizePixel() ); - if ( rSettings.mnWidth && rSettings.mnHeight && ( rSettings.mnWidth != aSizePixel.Width() ) || ( rSettings.mnHeight != aSizePixel.Height() ) ) + if( rSettings.mnWidth && rSettings.mnHeight && + ( ( rSettings.mnWidth != aSizePixel.Width() ) || + ( rSettings.mnHeight != aSizePixel.Height() ) ) ) { BitmapEx aBmpEx( aGraphic.GetBitmapEx() ); aBmpEx.Scale( Size( rSettings.mnWidth, rSettings.mnHeight ) ); diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx index d587f149f803..f355de08e843 100644 --- a/svx/source/unodraw/unoshtxt.cxx +++ b/svx/source/unodraw/unoshtxt.cxx @@ -350,6 +350,9 @@ void SvxTextEditSourceImpl::ChangeModel( SdrModel* pNewModel ) void SvxTextEditSourceImpl::Notify( SfxBroadcaster&, const SfxHint& rHint ) { + // #i105988 keep reference to this object + rtl::Reference< SvxTextEditSourceImpl > xThis( this ); + const SdrHint* pSdrHint = PTR_CAST( SdrHint, &rHint ); const SvxViewHint* pViewHint = PTR_CAST( SvxViewHint, &rHint ); |