Kaydet (Commit) 9c947fae authored tarafından Henry Castro's avatar Henry Castro Kaydeden (comit) Jan Holesovsky

sc tiled editing: Corrected dropdown button offset

Change-Id: Ieff88d5de119db30c3fbd2f58ba52696eeb3d327
üst a799d7c9
......@@ -96,7 +96,9 @@ void ScDPFieldButton::setPopupLeft(bool b)
void ScDPFieldButton::draw()
{
bool bOldMapEnablaed = mpOutDev->IsMapModeEnabled();
mpOutDev->EnableMapMode(false);
if (mpOutDev->GetMapMode().GetMapUnit() != MAP_PIXEL )
mpOutDev->EnableMapMode(false);
if (mbBaseButton)
{
......
......@@ -762,7 +762,16 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
if ( bLogicText )
aOutputData.DrawStrings(true); // in logic MapMode if bLogicText is set
aOutputData.DrawEdit(true);
pContentDev->SetMapMode(MAP_PIXEL);
if (bIsTiledRendering)
{
// Tiled offset nScrX, nScrY
MapMode aMap( MAP_PIXEL );
aMap.SetOrigin(Point(nScrX, nScrY));
pContentDev->SetMapMode(aMap);
}
else
pContentDev->SetMapMode(MAP_PIXEL);
// Autofilter- und Pivot-Buttons
......
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