Issue 8399

Summary: Edit controls allow to set text longer than the max text length (in some circumstances)
Product: gsl Reporter: Frank Schönheit <frank.schoenheit>
Component: codeAssignee: Frank Schönheit <frank.schoenheit>
Status: CLOSED FIXED QA Contact: issues@gsl <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: current   
Target Milestone: OOo 1.1 Beta   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Frank Schönheit 2002-10-16 12:05:17 UTC
Sometimes, the edit control (vcl/source/control/edit.cxx) does allow to set a
text which is longer than the MaxTextLen specified.
In Edit::ImplSetText, there is either ImplInsertText called, which respects
mnMaxTextLen.
But in case of "if ( mnXOffset || HasPaintEvent() )" being true, the text is set
immediately, without checking mnMaxTextLen.

Discovered this during investigating bug 6118, where after fixing the original
bug in DBA, a strange effect remained, depending on some repaint timing.
Comment 1 malte_timmermann 2002-12-19 16:22:44 UTC
Right...
Comment 2 Frank Schönheit 2002-12-19 17:47:08 UTC
targeting for OOo 1.1 Beta - a consequence of this bug is that under
some circumstances, wrong data is displayed in forms - this is worht
this target, IMO
Comment 3 malte_timmermann 2003-01-13 15:59:23 UTC
...
Comment 4 malte_timmermann 2003-01-23 10:21:53 UTC
Same behavior like in ImplInsertText now: Text will NOT be accepted 
when longer than MaxTextLen.
Comment 5 malte_timmermann 2003-02-05 10:53:22 UTC
Reopen for sending to QA
Comment 6 malte_timmermann 2003-02-05 10:54:29 UTC
MT->FS: Please verify.
Sorry, don't know who in QA could do that...
Comment 7 Frank Schönheit 2003-02-11 16:49:09 UTC
verified - setting to FIXED in a first step
Comment 8 Frank Schönheit 2003-02-11 16:49:37 UTC
marking as VERIFIED
Comment 9 michael.bemmer 2003-03-13 11:11:00 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.