svx/source/tbxctrls/tbxcolorupdate.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 1062519e749ca983c488dd22e0035486c1841039
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Mon Jul 28 15:17:18 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Jul 30 06:42:20 2025 +0200

    svx: Use existing helper to get Image
    
    ... instead of gettting an XGraphic and creating an
    Image from that manually.
    
    Change-Id: I3eb25aa7a4966a0e2db9adbdf6167e80dec87240
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188485
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx 
b/svx/source/tbxctrls/tbxcolorupdate.cxx
index 5ef2f8bf80d0..14879214a8e2 100644
--- a/svx/source/tbxctrls/tbxcolorupdate.cxx
+++ b/svx/source/tbxctrls/tbxcolorupdate.cxx
@@ -243,9 +243,8 @@ void ToolboxButtonColorUpdaterBase::Update(const Color& 
rColor, bool bForceUpdat
     if ((maCurColor == aColor) && !bSizeChanged && !bDisplayModeChanged && 
!bForceUpdate)
         return;
 
-    auto xImage
-        = vcl::CommandInfoProvider::GetXGraphicForCommand(maCommandURL, 
mxFrame, meImageType);
-    Image aImage(xImage);
+    const Image aImage
+        = vcl::CommandInfoProvider::GetImageForCommand(maCommandURL, mxFrame, 
meImageType);
 
     const Size aItemSize = GetItemSize(aImage.GetSizePixel());
     if (!aItemSize.Width() || !aItemSize.Height())

Reply via email to