ooo-build r14798 - in branches/ooo-build-3-0-1: . patches/dev300



Author: noelpwer
Date: Tue Dec  9 12:02:11 2008
New Revision: 14798
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14798&view=rev

Log:
2008-12-09  Noel Power  <noel power novell com>

        * patches/dev300/controls-with-images-in-document.diff: modify to 
        provide fix for n#447560




Modified:
   branches/ooo-build-3-0-1/ChangeLog
   branches/ooo-build-3-0-1/patches/dev300/controls-with-images-in-document.diff

Modified: branches/ooo-build-3-0-1/patches/dev300/controls-with-images-in-document.diff
==============================================================================
--- branches/ooo-build-3-0-1/patches/dev300/controls-with-images-in-document.diff	(original)
+++ branches/ooo-build-3-0-1/patches/dev300/controls-with-images-in-document.diff	Tue Dec  9 12:02:11 2008
@@ -1071,7 +1071,7 @@
 index edc0c77..71d70ab 100644
 --- xmloff/source/forms/elementimport.cxx
 +++ xmloff/source/forms/elementimport.cxx
-@@ -1133,10 +1133,10 @@ namespace xmloff
+@@ -1133,10 +1133,17 @@ namespace xmloff
  					)
  				);
  
@@ -1080,9 +1080,16 @@
  		{
  			// make a global URL out of the local one
 -			::rtl::OUString sAdjustedValue = m_rContext.getGlobalContext().GetAbsoluteReference( _rValue );
-+			::rtl::OUString sAdjustedValue = m_rContext.getGlobalContext().ResolveGraphicObjectURL( _rValue, FALSE );
++			::rtl::OUString sAdjustedValue;
++			// only resolve image related url
++			// we don't want say form url targets to be resolved
++			// using ResolveGraphicObjectURL
++			if ( 0 == _rLocalName.compareToAscii( s_pImageDataAttributeName ) )
++				sAdjustedValue = m_rContext.getGlobalContext().ResolveGraphicObjectURL( _rValue, FALSE );
++			else
++				 sAdjustedValue = m_rContext.getGlobalContext().GetAbsoluteReference( _rValue );
  			OImagePositionImport::handleAttribute( _nNamespaceKey, _rLocalName, sAdjustedValue );
- 		}
+ 	}
  		else
 diff --git xmloff/source/forms/propertyexport.cxx xmloff/source/forms/propertyexport.cxx
 index bedd87f..0b5f7a7 100644



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]