https://issues.apache.org/ooo/show_bug.cgi?id=124409
Armin Le Grand <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |ACCEPTED CC| |[email protected] Assignee|[email protected] |[email protected] |g | Target Milestone|--- |4.2.0 --- Comment #5 from Armin Le Grand <[email protected]> --- Problem is in PosSizePropertyPanel. There are two active mechanisms to get the UI unit. One uses the slot SID_ATTR_METRIC and it's update mechanism, this works and is triggered in the constructor and from apps when changing UI unit in tools/options. Another one uses calls to GetModuleFieldUnit() which is a helper and uses internally SfxModule::GetCurrentFieldUnit() which itself uses the static method GetActiveModule() to get the active SfxModule. With multiple views this is ambigious, too. This call then relies on the SfxModule to have slots set directly in the module's GetItem call, this is not the case for Writer (and cannot be guaranteed for all modules), thus the fallback FUNIT_INCH is returned which overwrites the correctly set local value from the 1st mechanism. I removed usages of the 2nd mechanism and checked all apps, including changing the UI units in tools/options, all works well. Preparing commit... -- You are receiving this mail because: You are on the CC list for the issue. You are the assignee for the issue. You are watching all issue changes.
