diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-10-05 14:18:51 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-10-05 17:21:14 +0200 |
commit | 03041e0f8d8385847c2e77fcaf08c1d33cad938f (patch) | |
tree | 2e31aa31850e7004e57c53aeb9b58b4b9256cff9 /editeng | |
parent | 97fdf8a04b50b2f7763eba7b16096868a358d313 (diff) |
tdf#112817 editeng,svx: fix SvxUnderlineItem/SvxOverlineItem SDI
This was asserting because the superclass SvxTextLineItem
was instantiated instead of the specific subclasses.
Change-Id: If26847b8fa96dbf00062ba8372fe58e58c786782
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/textitem.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index be0d87401bec..56b07c8e3588 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -105,6 +105,8 @@ SfxPoolItem* SvxPostureItem::CreateDefault() { return new SvxPostureItem(ITALIC_ SfxPoolItem* SvxWeightItem::CreateDefault() {return new SvxWeightItem(WEIGHT_NORMAL, 0);} SfxPoolItem* SvxFontHeightItem::CreateDefault() {return new SvxFontHeightItem(240, 100, 0);} SfxPoolItem* SvxTextLineItem::CreateDefault() {return new SvxTextLineItem(LINESTYLE_NONE, 0);} +SfxPoolItem* SvxUnderlineItem::CreateDefault() {return new SvxUnderlineItem(LINESTYLE_NONE, 0);} +SfxPoolItem* SvxOverlineItem::CreateDefault() {return new SvxOverlineItem(LINESTYLE_NONE, 0);} SfxPoolItem* SvxCrossedOutItem::CreateDefault() {return new SvxCrossedOutItem(STRIKEOUT_NONE, 0);} SfxPoolItem* SvxShadowedItem::CreateDefault() {return new SvxShadowedItem(false, 0);} SfxPoolItem* SvxAutoKernItem::CreateDefault() {return new SvxAutoKernItem(false, 0);} @@ -1234,6 +1236,7 @@ bool SvxTextLineItem::operator==( const SfxPoolItem& rItem ) const // class SvxUnderlineItem ------------------------------------------------ + SvxUnderlineItem::SvxUnderlineItem( const FontLineStyle eSt, const sal_uInt16 nId ) : SvxTextLineItem( eSt, nId ) { |