Tag: cws_src680_rptwizard01
User: lla     
Date: 2008-06-09 09:26:42+0000
Modified:
   dba/dbaccess/source/core/dataaccess/documentdefinition.cxx

Log:
 #i90513# fix for saveas of unchanged new report

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: documentdefinition.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.cxx?r1=1.50.46.4&r2=1.50.46.5
Delta lines:  +10 -10
---------------------
--- documentdefinition.cxx      2008-05-21 10:59:55+0000        1.50.46.4
+++ documentdefinition.cxx      2008-06-09 09:26:38+0000        1.50.46.5
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: documentdefinition.cxx,v $
- * $Revision: 1.50.46.4 $
+ * $Revision: 1.50.46.5 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -1361,6 +1361,14 @@
        // default handling: instantiate an interaction handler and let it 
handle the parameter request
     if ( !m_bOpenInDesign )
         return sal_False;
+
+       osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
+       if ( !m_pImpl->m_aProps.aTitle.getLength() )
+       {
+               aGuard.clear();
+               return save(sal_False); // (sal_False) : we don't want an 
approve dialog
+       }
+       aGuard.clear();
        try
        {
                {
@@ -1370,14 +1378,6 @@
                        Reference<XNameAccess> 
xName(m_xParentContainer,UNO_QUERY);
                        DocumentSaveRequest aRequest;
                        aRequest.Name = m_pImpl->m_aProps.aTitle;
-                       if ( !aRequest.Name.getLength() )
-                       {
-                               if ( m_bForm )
-                                       aRequest.Name = DBACORE_RESSTRING( 
RID_STR_FORM );
-                               else
-                                       aRequest.Name = DBACORE_RESSTRING( 
RID_STR_REPORT );
-                               aRequest.Name = 
::dbtools::createUniqueName(xName,aRequest.Name);
-                       }
 
                        aRequest.Content.set(m_xParentContainer,UNO_QUERY);
                        OInteractionRequest* pRequest = new 
OInteractionRequest(makeAny(aRequest));




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

Reply via email to