summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdograf.cxx
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2020-10-29 11:24:20 +0100
committerTomaž Vajngerl <quikee@gmail.com>2020-11-02 09:36:57 +0100
commit22c88a039a557343ab11fbf7abc8f2a087e1a3c2 (patch)
tree7b7b7b93f7f24594bc571c4cda2fb506873e7043 /svx/source/svdraw/svdograf.cxx
parentd1b6694f843c5bda92e106db6efd36654df9ee9a (diff)
Resolves tdf#137813 - Status bar info 'PDF selected'
Change-Id: I60cc75dfe8e63d7d545211a9bf58efc9d34d51ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104996 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rw-r--r--svx/source/svdraw/svdograf.cxx22
1 files changed, 16 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 3bea3d14b642..2359380c95e0 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -561,6 +561,11 @@ OUString SdrGrafObj::TakeObjNameSingul() const
{
switch (rVectorGraphicDataPtr->getVectorGraphicDataType())
{
+ case VectorGraphicDataType::Svg:
+ {
+ sName.append(SvxResId(STR_ObjNameSingulGRAFSVG));
+ break;
+ }
case VectorGraphicDataType::Wmf:
{
sName.append(SvxResId(STR_ObjNameSingulGRAFWMF));
@@ -571,12 +576,12 @@ OUString SdrGrafObj::TakeObjNameSingul() const
sName.append(SvxResId(STR_ObjNameSingulGRAFEMF));
break;
}
- default: // case VectorGraphicDataType::Svg:
+ case VectorGraphicDataType::Pdf:
{
- sName.append(SvxResId(STR_ObjNameSingulGRAFSVG));
+ sName.append(SvxResId(STR_ObjNameSingulGRAFPDF));
break;
}
- }
+ } //no default, see tdf#137813
}
else
{
@@ -631,6 +636,11 @@ OUString SdrGrafObj::TakeObjNamePlural() const
{
switch (rVectorGraphicDataPtr->getVectorGraphicDataType())
{
+ case VectorGraphicDataType::Svg:
+ {
+ sName.append(SvxResId(STR_ObjNamePluralGRAFSVG));
+ break;
+ }
case VectorGraphicDataType::Wmf:
{
sName.append(SvxResId(STR_ObjNamePluralGRAFWMF));
@@ -641,12 +651,12 @@ OUString SdrGrafObj::TakeObjNamePlural() const
sName.append(SvxResId(STR_ObjNamePluralGRAFEMF));
break;
}
- default: // case VectorGraphicDataType::Svg:
+ case VectorGraphicDataType::Pdf:
{
- sName.append(SvxResId(STR_ObjNamePluralGRAFSVG));
+ sName.append(SvxResId(STR_ObjNamePluralGRAFPDF));
break;
}
- }
+ } //no default, see tdf#137813
}
else
{