Kaydet (Commit) 51b71a7b authored tarafından Susobhan Ghosh's avatar Susobhan Ghosh Kaydeden (comit) Samuel Mehrbrodt

Related tdf#96059 Fix icons in File->New menu

Change-Id: Iecfa69ab9db76ce0390a06d9d9574f30469c131a
Reviewed-on: https://gerrit.libreoffice.org/21483Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 07054b05
......@@ -41,6 +41,8 @@
#include <osl/file.hxx>
#include <svtools/menuoptions.hxx>
#include <svtools/acceleratorexecute.hxx>
#include <svtools/imagemgr.hxx>
#include <tools/urlobj.hxx>
#include <unotools/moduleoptions.hxx>
#include <osl/mutex.hxx>
#include <memory>
......@@ -101,7 +103,10 @@ void NewMenuController::setMenuImages( PopupMenu* pPopupMenu, bool bSetImages )
{
OUString aCmd( pPopupMenu->GetItemCommand( nItemId ) );
if ( !aCmd.isEmpty() )
aImage = vcl::CommandInfoProvider::Instance().GetImageForCommand( aCmd, false, xFrame );
{
INetURLObject aURLObj( aCmd );
aImage = SvFileInformationManager::GetImageNoDefault( aURLObj, false );
}
if ( !!aImage )
pPopupMenu->SetItemImage( nItemId, aImage );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment