Tag: cws_src680_reportdesign01
User: oj      
Date: 2007-09-21 12:56:09+0000
Modified:
   dba/reportdesign/source/ui/dlg/GroupsSorting.cxx

Log:
 #i77142# deactivate cell when accept drag

File Changes:

Directory: /dba/reportdesign/source/ui/dlg/
===========================================

File [changed]: GroupsSorting.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/dlg/GroupsSorting.cxx?r1=1.5&r2=1.5.20.1
Delta lines:  +10 -3
--------------------
--- GroupsSorting.cxx   2007-08-03 10:00:35+0000        1.5
+++ GroupsSorting.cxx   2007-09-21 12:56:06+0000        1.5.20.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: GroupsSorting.cxx,v $
  *
- *  $Revision: 1.5 $
+ *  $Revision: 1.5.20.1 $
  *
- *  last change: $Author: hr $ $Date: 2007/08/03 10:00:35 $
+ *  last change: $Author: oj $ $Date: 2007/09/21 12:56:06 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -297,6 +297,13 @@
 {
        DBG_CHKTHIS( rpt_OFieldExpressionControl,NULL);
        sal_Int8 nAction = DND_ACTION_NONE;
+    if ( IsEditing() )
+       {
+        USHORT nPos = m_pComboCell->GetSelectEntryPos();
+               if ( COMBOBOX_ENTRY_NOTFOUND != nPos || 
m_pComboCell->GetText().Len() )
+               SaveModified();
+               DeactivateCell();
+       }
        if ( IsDropFormatSupported( OGroupExchange::getReportGroupId() ) && 
m_pParent->getGroups()->getCount() > 1 && rEvt.GetWindow() == &GetDataWindow() )
        {
                nAction = DND_ACTION_MOVE;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to