To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=100360
User aw changed the following: What |Old value |New value ================================================================================ CC|'' |'pl' -------------------------------------------------------------------------------- Status|NEW |STARTED -------------------------------------------------------------------------------- ------- Additional comments from a...@openoffice.org Thu Mar 19 15:16:44 +0000 2009 ------- AW: Investigated, very interesting. The imported bitmap has a PrefMapMode of MAP_PIXEL and a PrefSize of (113, 23), this is the same in 3.0 and 3.1. The difference happens when this is changed to logical sizes. In 3.0, this chage is done (starting from old DoPaintObject) in ImpCalcBmpFillSizes using: if( MAP_PIXEL == aBmpPrefMapMode.GetMapUnit() ) rBmpOutputSize = Application::GetDefaultDevice()->PixelToLogic( aBmpPrefSize, rOutputMapMode ); else rBmpOutputSize = OutputDevice::LogicToLogic( aBmpPrefSize, aBmpPrefMapMode, rOutputMapMode ); while the primitive version adapts the pixel to logic size much earlier using: aBitmap.SetPrefSize(Application::GetDefaultDevice()->LogicToLogic( aBitmap.GetPrefSize(), aBitmap.GetPrefMapMode(), aDestinationMapUnit)); The very intersting thing is the exception in the old version for bitmaps: it leads to another result: PixelToLogic(Size(113, 23), MAP_100TH_MM) -> (3986, 811) LogicToLogic(Size(113, 23), MAP_PIXEL, 100TH_MM) -> (2990, 609) where both versions use Application::GetDefaultDevice() for the PixelToLogic call. I would have expected the same results for both calls ?!? AW->PL: Any hints why both calls give different results ...??? --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@graphics.openoffice.org For additional commands, e-mail: issues-h...@graphics.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org