offapi/com/sun/star/ui/ImageType.idl | 7 +++---- vcl/source/helper/commandinfoprovider.cxx | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-)
New commits: commit 720983ad53b46f88988b91e8e3ac08a8110bc7c3 Author: Jonathan Clark <jonat...@libreoffice.org> AuthorDate: Tue Mar 11 21:24:40 2025 -0600 Commit: Jonathan Clark <jonat...@libreoffice.org> CommitDate: Wed Mar 12 06:45:09 2025 +0100 tdf#70102 API cleanup for RTL icon variant code support Removed an unnecessary DIR_LR_TB enum value. Added a missing @since annotation. Change-Id: If27357cb05498abca5a69adcd6e63c25b412f6b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182802 Reviewed-by: Jonathan Clark <jonat...@libreoffice.org> Tested-by: Jenkins diff --git a/offapi/com/sun/star/ui/ImageType.idl b/offapi/com/sun/star/ui/ImageType.idl index 37ac8712a1c4..8fe15521e429 100644 --- a/offapi/com/sun/star/ui/ImageType.idl +++ b/offapi/com/sun/star/ui/ImageType.idl @@ -51,11 +51,10 @@ constants ImageType */ const short COLOR_HIGHCONTRAST = 4; - /** an image unspecialized, or for lr-tb writing. - */ - const short DIR_LR_TB = 0; + /** an image specialized for rl-tb writing. if unset, the + image is unspecialized or for lr-tb writing. - /** an image specialized for rl-tb writing. + @since LibreOffice 25.8 */ const short DIR_RL_TB = 8; }; diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx index bc6a3eaa3638..370cfc31bb2e 100644 --- a/vcl/source/helper/commandinfoprovider.cxx +++ b/vcl/source/helper/commandinfoprovider.cxx @@ -345,8 +345,7 @@ Reference<graphic::XGraphic> GetXGraphicForCommand(const OUString& rsCommandName if (rsCommandName.isEmpty()) return nullptr; - sal_Int16 nImageType(ui::ImageType::COLOR_NORMAL | ui::ImageType::SIZE_DEFAULT - | ui::ImageType::DIR_LR_TB); + sal_Int16 nImageType(ui::ImageType::COLOR_NORMAL | ui::ImageType::SIZE_DEFAULT); if (eImageType == vcl::ImageType::Size26) nImageType |= ui::ImageType::SIZE_LARGE;