Kaydet (Commit) 9ba5eb22 authored tarafından Marco Cecchetti's avatar Marco Cecchetti Kaydeden (comit) Jan Holesovsky

sc rowlimit: Make the cursor better fit the rendering.

Change-Id: If4d02161bd8a37100d7403c05ea0840a3d2d0cf8
üst 221e8365
......@@ -682,7 +682,7 @@ void DesktopLOKTest::testCellCursor()
boost::property_tree::read_json(aStream, aTree);
OString aRectangle(aTree.get<std::string>("commandValues").c_str());
CPPUNIT_ASSERT_EQUAL(aRectangle, OString("0, 0, 1278, 254"));
CPPUNIT_ASSERT_EQUAL(OString("0, 0, 1279, 255"), aRectangle);
}
void DesktopLOKTest::testCommandResult()
......
......@@ -5721,8 +5721,9 @@ OString ScGridWindow::getCellCursor(const Fraction& rZoomX, const Fraction& rZoo
double fPPTX = pViewData->GetPPTX();
double fPPTY = pViewData->GetPPTY();
Rectangle aRect(Point(aScrPos.getX() / fPPTX, aScrPos.getY() / fPPTY),
Size(nSizeXPix / fPPTX, nSizeYPix / fPPTY));
Rectangle aRect(Point(rtl::math::round(aScrPos.getX() / fPPTX), rtl::math::round(aScrPos.getY() / fPPTY)),
Size(rtl::math::round(nSizeXPix / fPPTX), rtl::math::round(nSizeYPix / fPPTY)));
pViewData->SetZoom(defaultZoomX, defaultZoomY, true);
......
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