Issue 11212 - invalid languagetype used in GetDefaultFont
Summary: invalid languagetype used in GetDefaultFont
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 644
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ulf.stroehler
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-05 14:21 UTC by philipp.lohmann
Modified: 2013-08-07 14:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description philipp.lohmann 2003-02-05 14:21:00 UTC
- install japanese version (81) (use japanese locale)
- start writer
- the initial font is not the default font for japanese, but that for english.

In sw/source/ui/app/doshini.cxx line 378 (rev.1.27.7) you get an
SvxLanguageItem. The result of its GetLanguage() member you use in
GetDefaultFont; the result being used is 0x7EF8 the first time and 0x7F20 the
second time that code is passed on creating a document (resp. on startup).
Neither of these values is a valid language type (not even nearly). Please check
whether GetLanguage really produces a LanguageType as defined in tools/lang.hxx;
if not please use the correct method, if yes then please dispatch this issue to
whomever may be responsible for the wrong language type.

Seen on Linux but this does not look like a system specific issue.
Comment 1 philipp.lohmann 2003-02-05 14:21:45 UTC
I think this should be fixed in beta or at least final.
Comment 2 bluedwarf 2003-02-15 13:09:39 UTC
Hi,

There's no reply and 644 snapshot was published.
I can't feel good atmosphere in this issue.

Oliver, please reassigned this issue to developer properly or fix this
issue by yourself.
Developer who are resposible for sw/source/ui/app/doshini.cxx, please
consider this issue.

Best Regards,
Comment 3 Oliver Specht 2003-02-18 14:04:42 UTC
Fixed in cws apps02 in sw\source\ui\app\docshini.cxx
Comment 4 Oliver Specht 2003-03-06 15:12:08 UTC
.
Comment 5 Oliver Specht 2003-03-06 15:15:21 UTC
.
Comment 6 Oliver Specht 2003-03-06 15:15:35 UTC
.
Comment 7 stefan.baltzer 2003-03-12 10:57:01 UTC
Verified in CWS apps02.
Comment 8 michael.bemmer 2003-03-13 11:09:31 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.