Kaydet (Commit) 169b9397 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Set correct grid color.

Change-Id: Ie8ccf61f0b04b718c930b14374843e3858c6278b
üst 6a5f3ff7
......@@ -897,6 +897,17 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
ScOutputData aOutData(
&rDevice, OUTTYPE_WINDOW, aTabInfo, pDoc, nTab, 0, 0, nCol1, nRow1, nCol2, nRow2, fPPTX, fPPTY);
const svtools::ColorConfig& rColorCfg = SC_MOD()->GetColorConfig();
Color aGridColor = rColorCfg.GetColorValue(svtools::CALCGRID, false).nColor;
if (aGridColor.GetColor() == COL_TRANSPARENT)
{
// use view options' grid color only if color config has "automatic" color
const ScViewOptions& rOpts = pViewData->GetOptions();
aGridColor = rOpts.GetGridColor();
}
aOutData.SetGridColor(aGridColor);
aOutData.DrawGrid(true, false);
aOutData.DrawShadow();
......
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