Issue 5455 - Reference to table-label disappears after reopening -> german version
Summary: Reference to table-label disappears after reopening -> german version
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: ui (show other issues)
Version: OOo 1.0.0
Hardware: PC Windows 2000
: P2 Trivial (vote)
Target Milestone: ---
Assignee: thomas.lange
QA Contact: issues@l10n
URL: http://www.fh-augsburg.de/~mike_s/tes...
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-31 15:36 UTC by Unknown
Modified: 2003-01-23 10:06 UTC (History)
1 user (show)

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


Attachments
simple test file (10.17 KB, application/octet-stream)
2002-05-31 18:38 UTC, openoffice
no flags Details
test file as .sdw (34.50 KB, application/octet-stream)
2002-05-31 18:38 UTC, openoffice
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-31 15:36:03 UTC
Referencefile: see link!
Created 1 "Modell" + 1 "Tabelle" with referencetext (field) on sidebar.
After reopening file: 
Reference to Modell is still there, but reference to "Tabelle" disappears 
immediately. Field is still there: Klick on it: Now type is not "Tabelle"
any more but "Table" (you coldn't choose before).
Comment 1 openoffice 2002-05-31 18:37:34 UTC
dvo->sba: I can reproduce this on a SO 6.0, too. 

Since we loose data, I think this should really be fixed. I can't
determine yet what the problem is, but assigning to me seems like a
good idea. :-)
Comment 2 openoffice 2002-05-31 18:38:23 UTC
Created attachment 1827 [details]
simple test file
Comment 3 openoffice 2002-05-31 18:38:57 UTC
Created attachment 1828 [details]
test file as .sdw
Comment 4 stefan.baltzer 2002-06-03 15:12:18 UTC
Reassigned to Éric.
Comment 5 eric.savary 2002-06-04 11:21:39 UTC
ES->DVO: See iBIS 99890. I also think that this issue should be fixed 
asap. FYI. Only occures on non English OOo.
Comment 6 openoffice 2002-06-04 11:59:48 UTC
The problem is in the translation between programmatic and UI names
for get-reference fields. The code (reffld.cxx#688) looks like this:
        OUString sTmp;
        rAny >>= sTmp;
        ConvertProgrammaticToUIName();
        SetPar1(sTmp);
Note that the call to ConvertProgrammaticToUIName(), but rather
operates on the state of the object. But this state is modified only
in the SetPar1(..) call! Switching those two lines solves the problem.
So this works:
        OUString sTmp;
        rAny >>= sTmp;
        SetPar1(sTmp);
        ConvertProgrammaticToUIName();
I suppose this was broken either when the conversion was introduced,
or later when it was changed to use STL structures. I wonder if more
than only this bug was introduced... 

dvo->tl: Please have a look at this and check this in if you agree.

dvo->happymicha: You can apply the above change and recompile yourself
if you need this urgently.
Comment 7 thomas.lange 2002-06-10 09:17:15 UTC
(empty comment) ^^
Comment 8 eric.savary 2002-07-01 19:49:48 UTC
ES->to all: this issue can be closed. Works in a 643g
Comment 9 eric.savary 2002-07-01 19:52:40 UTC
SO, FIXED.
Comment 10 thomas.lange 2003-01-23 10:06:35 UTC
closed