summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin4.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-rw-r--r--sc/source/ui/view/gridwin4.cxx43
1 files changed, 1 insertions, 42 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 10b5bcca8b76..3ab531e6040e 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1551,8 +1551,6 @@ void ScGridWindow::DrawPagePreview( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
void ScGridWindow::DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo, OutputDevice* pContentDev)
{
- bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive();
-
aComboButton.SetOutputDevice( pContentDev );
ScDocument* pDoc = pViewData->GetDocument();
@@ -1687,7 +1685,7 @@ void ScGridWindow::DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo
}
}
- if ( bListValButton && pRowInfo[nArrY].nRowNo == aListValPos.Row() && pRowInfo[nArrY].bChanged )
+ if ( !comphelper::LibreOfficeKit::isActive() && bListValButton && pRowInfo[nArrY].nRowNo == aListValPos.Row() && pRowInfo[nArrY].bChanged )
{
Rectangle aRect = GetListValButtonRect( aListValPos );
aComboButton.SetPosPixel( aRect.TopLeft() );
@@ -1698,45 +1696,6 @@ void ScGridWindow::DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo
aComboButton.SetPosPixel( aOldPos ); // restore old state
aComboButton.SetSizePixel( aOldSize ); // for MouseUp/Down (AutoFilter)
}
-
- if (bIsTiledRendering)
- {
- ScTabViewShell* pThisViewShell = pViewData->GetViewShell();
- SfxViewShell* pViewShell = SfxViewShell::GetFirst();
-
- while (pViewShell)
- {
- if (pViewShell != pThisViewShell)
- {
- ScTabViewShell* pTabViewShell = dynamic_cast<ScTabViewShell*>(pViewShell);
- if (pTabViewShell)
- {
- ScViewData& rOtherViewData = pTabViewShell->GetViewData();
- ScGridWindow* pOtherWin = rOtherViewData.GetActiveWin();
- if (pOtherWin)
- {
- bool bOtherListValButton = pOtherWin->bListValButton;
- ScAddress aOtherListValPos = pOtherWin->aListValPos;
-
- if ( bOtherListValButton && pRowInfo[nArrY].nRowNo == aOtherListValPos.Row() && pRowInfo[nArrY].bChanged )
- {
- Rectangle aRect = GetListValButtonRect( aOtherListValPos );
- aComboButton.SetPosPixel( aRect.TopLeft() );
- aComboButton.SetSizePixel( aRect.GetSize() );
- pContentDev->SetClipRegion(vcl::Region(aRect));
- aComboButton.Draw();
- pContentDev->SetClipRegion(); // always called from Draw() without clip region
- aComboButton.SetPosPixel( aOldPos ); // restore old state
- aComboButton.SetSizePixel( aOldSize ); // for MouseUp/Down (AutoFilter)
- }
-
- }
- }
- }
-
- pViewShell = SfxViewShell::GetNext(*pViewShell);
- }
- }
}
pQueryParam.reset();