summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-04 10:16:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-05 07:52:29 +0100
commit307b746cd41fa5bf971573dd7665108def4e298b (patch)
treec35f432885ac9e790341237e0c30f070b29cf3f8
parent36b21429c2c423271786e29c6a480b4b689a8ab8 (diff)
remove unused SdrGrafObjTransformsAttrs enum value
Change-Id: I6b6808362ff08c5af3b0d294a80cfe79505a9710 Reviewed-on: https://gerrit.libreoffice.org/64563 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/svx/svdograf.hxx9
-rw-r--r--svx/source/svdraw/svdedtv2.cxx2
-rw-r--r--svx/source/svdraw/svdograf.cxx2
3 files changed, 6 insertions, 7 deletions
diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx
index c3e2ae0c1874..4b50d122b256 100644
--- a/include/svx/svdograf.hxx
+++ b/include/svx/svdograf.hxx
@@ -47,14 +47,13 @@ namespace sdr
enum class SdrGrafObjTransformsAttrs
{
NONE = 0x00,
- COLOR = 0x01,
- MIRROR = 0x02,
- ROTATE = 0x04,
- ALL = 0x07,
+ MIRROR = 0x01,
+ ROTATE = 0x02,
+ ALL = 0x03,
};
namespace o3tl
{
- template<> struct typed_flags<SdrGrafObjTransformsAttrs> : is_typed_flags<SdrGrafObjTransformsAttrs, 7> {};
+ template<> struct typed_flags<SdrGrafObjTransformsAttrs> : is_typed_flags<SdrGrafObjTransformsAttrs, 0x03> {};
}
class SdrGrafObjGeoData : public SdrTextObjGeoData
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 732bd1ce63f8..441ea9ba4bda 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1999,7 +1999,7 @@ namespace
GDIMetaFile GetMetaFile(SdrGrafObj const * pGraf)
{
if (pGraf->HasGDIMetaFile())
- return pGraf->GetTransformedGraphic(SdrGrafObjTransformsAttrs::COLOR|SdrGrafObjTransformsAttrs::MIRROR).GetGDIMetaFile();
+ return pGraf->GetTransformedGraphic(SdrGrafObjTransformsAttrs::MIRROR).GetGDIMetaFile();
assert(pGraf->isEmbeddedVectorGraphicData());
return pGraf->getMetafileFromEmbeddedVectorGraphicData();
}
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index bcc4f1098a51..1bf7cbfbbfa2 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -880,7 +880,7 @@ GDIMetaFile SdrGrafObj::GetMetaFile(GraphicType &rGraphicType) const
}
else if (GraphicType::GdiMetafile == rGraphicType)
{
- return GetTransformedGraphic(SdrGrafObjTransformsAttrs::COLOR|SdrGrafObjTransformsAttrs::MIRROR).GetGDIMetaFile();
+ return GetTransformedGraphic(SdrGrafObjTransformsAttrs::MIRROR).GetGDIMetaFile();
}
return GDIMetaFile();
}