To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=77682 Issue #|77682 Summary|Impress/Draw: display of incorrect font Component|Spreadsheet Version|680m212 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|cl Reported by|tl
------- Additional comments from [EMAIL PROTECTED] Tue May 22 14:36:12 +0000 2007 ------- This one is a follow-up of issue 72349. In CWS tl37 issue 72349 (the EditEngine's detection of the script-type) was fixed. This resulted in Writer draw objects showing the correct font. However the same did not happen in Draw/Impress and Calc. The reason for this is that sd in drtxtob.cxx in function TextObjectBar::GetAttrState has code that overrides the detected script type with the one used for the keyboard input language when there is no selection. It looks like this : if(pOLV && !pOLV->GetSelection().HasRange()) : { : if( mpViewShell && mpViewShell->GetViewShell() && mpViewShell->GetViewShell()->GetWindow() ) : { : LanguageType nInputLang = mpViewShell->GetViewShell()->GetWindow()->GetInputLanguage(); : if(nInputLang != LANGUAGE_DONTKNOW && nInputLang != LANGUAGE_SYSTEM) : nScriptType = SvtLanguageOptions::GetScriptTypeOfLanguage( nInputLang ); : } : } This code was probably introduced with the feature to make use of the keyboard language for Asian languages (see issue 42732). Since the current implementation of this feature prevents issue 72349 from completely being fixed we need either to drop this issue or change the implementation of the feature. For example in Writer text boxes the keyboard langauge is not applied immediately but only if new text is entered. This is done via a post-key event. Thus it needs to be discussed what should be done here. Closing the mentioned issues or changing the implementation. NOTE: If the choice is to change the implementation please be aware that Calc has similar code which then needs to be changed accordingly as well. In Calc the code is located in editsh.cxx in the function ScEditShell::GetAttrState (about line 956) --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]