sc/source/ui/drawfunc/fuins2.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit f012739daefa0e7ae03db0ce9fc0020cf5c53e59 Author: Xisco Fauli <[email protected]> AuthorDate: Fri Jan 23 12:15:29 2026 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Fri Jan 23 16:26:46 2026 +0100 sc: Move variable into proper scope Change-Id: Iba13f7ddfbad978020d7156921e78f48d9304bb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197942 Reviewed-by: Xisco Fauli <[email protected]> Tested-by: Jenkins diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index e76a8fe873ae..f4f8b6654027 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -513,8 +513,6 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV awt::Size aSz = xObj->getVisualAreaSize( nAspect ); aSize = Size( aSz.Width, aSz.Height ); - MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( nAspect ) ); - bool bSizeCh = false; if (aSize.IsEmpty()) { @@ -524,6 +522,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV } if (bSizeCh) { + MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( nAspect ) ); aSize = OutputDevice::LogicToLogic( aSize, MapMode( MapUnit::Map100thMM ), MapMode( aMapUnit ) ); aSz.Width = aSize.Width(); aSz.Height = aSize.Height();
