Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Fri, 2011-07-29 at 11:26 +0100, Noel Power wrote:
If I understand what you mean then I think it is the patch output is 
confusing things 

Hmm... I'm not sure about that.  Basically what I was suggesting was to
make the following change

--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -2629,8 +2629,8 @@ ScVbaRange::Copy(const ::uno::Any& Destination) throw (uno::RuntimeException)
         {
             ScRange aRange;
             RangeHelper thisRange( mxRange );
-            uno::Reference< frame::XModel > xModel = excel::GetModelFromRange( mxRange );
             ScUnoConversion::FillScRange( aRange, 
thisRange.getCellRangeAddressable()->getRangeAddress() );
+            uno::Reference< frame::XModel > xModel = excel::GetModelFromRange( mxRange );
             excel::implnCopyRange( xModel, aRange );
         }
     }

after applying your patch, because, before your change, FillScRange was
called first *then* xModel was assigned an instance, but you got them
flipped in your new code.

This may not affect anything but I've seen in the past a difference of
night and day just by re-ordering two lines of code, so I have my own
reason to be paranoid. ;-)

I hope I'm making sense....

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc
<kyoshida@novell.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.