From f91e577ad81da79f0d8a92e02b9bdddce6dec85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 15 Dec 2014 09:09:10 +0000 Subject: [PATCH] coverity#1258449 Explicit null dereferenced Change-Id: I531a6ddd744f83ef345c0de8f8c112f61d56925e --- svx/source/sidebar/area/AreaPropertyPanel.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/svx/source/sidebar/area/AreaPropertyPanel.cxx b/svx/source/sidebar/area/AreaPropertyPanel.cxx index d95eaee471f8..5f0d43236ca6 100644 --- a/svx/source/sidebar/area/AreaPropertyPanel.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanel.cxx @@ -581,6 +581,7 @@ void AreaPropertyPanel::ImpUpdateTransparencies() switch(rGradient.GetGradientStyle()) { + default: case css::awt::GradientStyle_LINEAR: { nEntryPos = 2; @@ -617,8 +618,6 @@ void AreaPropertyPanel::ImpUpdateTransparencies() pImage = &maImgSquare; break; } - default: - break; } const sal_uInt16 nIdGradient = mpBTNGradient->GetItemId(UNO_SIDEBARGRADIENT);