Revert "Resolves tdf#156685 - "Object without fill" style for tables"
This reverts commit 86eb7ad2b4488dcd29c21ae3fc525056b681e199.
Reason for revert: More generic solution in I1ca8cfe539a662100f6c581fd633ab1ebd5c6bfb
Change-Id: Ie2769a90f776602e38fc2795e08d591f9ae8d618
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158035
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index b28f89c..67196e8 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -44,8 +44,6 @@
#include <Window.hxx>
#include <drawview.hxx>
#include <sdmod.hxx>
#include <strings.hrc>
#include <sdresid.hxx>
#include <memory>
@@ -149,11 +147,7 @@ static void InsertTableImpl(const DrawViewShell* pShell,
aRect,
nColumns,
nRows);
//tables must not use default background tango sky blue tdf#156685
SfxStyleSheet* pStyleSheet = static_cast<SfxStyleSheet*>(
pShell->GetDoc()->GetStyleSheetPool()->Find(
SdResId(STR_POOLSHEET_OBJWITHOUTFILL), SfxStyleFamily::Para));
pObj->NbcSetStyleSheet( pStyleSheet, true );
pObj->NbcSetStyleSheet( pShell->GetDoc()->GetDefaultStyleSheet(), true );
apply_table_style( pObj.get(), pShell->GetDoc(), sTableStyle );
SdrPageView* pPV = pView->GetSdrPageView();