Simple work-around for unpleasant framework shutdown to avoid crash.
http://crashreport.libreoffice.org/stats/crash_details/2de31c06-da20-4280-916a-e282a337b16b Change-Id: I0b599de9b36f62d65988c1ab698f1559134fbf7c Reviewed-on: https://gerrit.libreoffice.org/34294 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
@@ -635,7 +635,8 @@ ToolBoxButtonSize ToolBox::GetToolboxButtonSize() const
|
||||
|
||||
/*static*/ Size ToolBox::GetDefaultImageSize(ToolBoxButtonSize eToolBoxButtonSize)
|
||||
{
|
||||
float fScaleFactor = Application::GetDefaultDevice()->GetDPIScaleFactor();
|
||||
OutputDevice *pDefault = Application::GetDefaultDevice();
|
||||
float fScaleFactor = pDefault ? pDefault->GetDPIScaleFactor() : 1.0;
|
||||
|
||||
Size aUnscaledSize = Size(16, 16);
|
||||
|
||||
|
Reference in New Issue
Block a user