SdrGrafCropItem needs its own SfxItemType

Change-Id: I45bf4abf015dd493451f77e66dd70006867a2a6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174268
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2024-09-30 13:49:56 +02:00
parent 84725adbdc
commit eb73e2c8b6
2 changed files with 2 additions and 1 deletions

View File

@@ -178,6 +178,7 @@ enum class SfxItemType : sal_uInt16 {
SdrFractionItemType, SdrFractionItemType,
SdrGrafBlueItemType, SdrGrafBlueItemType,
SdrGrafContrastItemType, SdrGrafContrastItemType,
SdrGrafCropType,
SdrGrafGamma100ItemType, SdrGrafGamma100ItemType,
SdrGrafGreenItemType, SdrGrafGreenItemType,
SdrGrafLuminanceItemType, SdrGrafLuminanceItemType,

View File

@@ -35,7 +35,7 @@ public:
SdrGrafCropItem( sal_Int32 nLeftCrop = 0, sal_Int32 nTopCrop = 0, SdrGrafCropItem( sal_Int32 nLeftCrop = 0, sal_Int32 nTopCrop = 0,
sal_Int32 nRightCrop = 0, sal_Int32 nBottomCrop = 0 ) : sal_Int32 nRightCrop = 0, sal_Int32 nBottomCrop = 0 ) :
SvxGrfCrop( nLeftCrop, nRightCrop, nTopCrop, nBottomCrop, SDRATTR_GRAFCROP ) {} SvxGrfCrop( nLeftCrop, nRightCrop, nTopCrop, nBottomCrop, SDRATTR_GRAFCROP, SfxItemType::SdrGrafCropType ) {}
virtual SdrGrafCropItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual SdrGrafCropItem* Clone( SfxItemPool* pPool = nullptr ) const override;
}; };