sc/source/ui/view/gridwin4.cxx |   17 ++++++++++-------
 solenv/bin/ooinstall           |    5 ++++-
 2 files changed, 14 insertions(+), 8 deletions(-)

New commits:
commit 90608ef9d3644cb9795f977fedbe74e442a652c9
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Wed Nov 22 21:05:48 2017 +0200
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Thu Feb 9 11:07:15 2023 +0100

    Use the same solenv/bin/ooinstall as in the cp-5.3 branch
    
    Specifically, pass the correct product name and not a hardcoded
    "LibreOffice" for the make_installer.pl script's -p option.
    
    As such, instsetoo_native/util/openoffice.lst.in hardcodes the product
    name as "CollaboraOffice" so we could as well do that also in
    ooinstall.
    
    (cherry picked from commit 852ffcae172c8ce1536f847410d94b6fcb486b96)
    
    Change-Id: I9b2d84bcc18e21b325960f7057e259daa37234a5
    Reviewed-on: https://gerrit.libreoffice.org/55640
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>
    (cherry picked from commit 12d1b08aac8cc8c3176040efc7290377e380f0c4)
    Reviewed-on: https://gerrit.libreoffice.org/79128
    Reviewed-by: Tor Lillqvist <t...@collabora.com>
    Tested-by: Tor Lillqvist <t...@collabora.com>
    (cherry picked from commit 0069417b55c99166aec5489ccef803eba25d2b4f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136842
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index efb1f28de824..71f10c739036 100755
--- a/solenv/bin/ooinstall
+++ b/solenv/bin/ooinstall
@@ -88,11 +88,14 @@ if ($destdir && "$ENV{DESTDIR}" ne "/" && -d 
"$ENV{DESTDIR}") {
 
 print "Running LibreOffice installer\n";
 
+my $PRODUCTNAME_no_spaces = $ENV{PRODUCTNAME};
+$PRODUCTNAME_no_spaces =~ s/ //g;
+
 system ("cd $ENV{SRC_ROOT}/instsetoo_native/util ; " .
         "perl " .
         (scalar keys(%DB::sub) ? "-d " : "") .
         "-w $ENV{SRCDIR}/solenv/bin/make_installer.pl " .
-        "-f $ENV{BUILDDIR}/instsetoo_native/util/openoffice.lst -l $langs -p 
LibreOffice " .
+        "-f $ENV{BUILDDIR}/instsetoo_native/util/openoffice.lst -l $langs -p 
$PRODUCTNAME_no_spaces " .
         "-u $tmp_dir " .
         "-buildid $BUILD $destdir $strip $msi " .
         "-simple $path") && die "Failed to install: $!";
commit 4a9728089606787c87f5c3dbf14c2ce57711fad6
Author:     Dennis Francis <dennis.fran...@collabora.com>
AuthorDate: Fri May 6 10:56:38 2022 +0530
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Thu Feb 9 11:05:10 2023 +0100

    lok: do not recreate lok-drawview for every tile paint
    
    This lets the ScLOKDrawView live long enough for non-tile painting
    related invocation of its methods and hopefully those of its member objects.
    
    This is a blind fix for the following crash:
    
    /opt/collaboraoffice/program/../program/libsclo.so
            (anonymous 
namespace)::ScLOKProxyObjectContact::calculateGridOffsetForViewOjectContact(basegfx::B2DVector&,
 sdr::contact::ViewObjectContact const&) const
    ...
    /opt/collaboraoffice/program/libmergedlo.so
            
SdrTextObj::NbcSetOutlinerParaObjectForText(std::unique_ptr<OutlinerParaObject, 
std::default_delete<OutlinerParaObject> >, SdrText*)
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/svx/source/svdraw/svdotext.cxx:1379
    /opt/collaboraoffice/program/libmergedlo.so
            sdr::properties::TextProperties::ItemSetChanged(SfxItemSet const&)
                    
/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/unique_ptr.h:360
    /opt/collaboraoffice/program/libmergedlo.so
            sdr::properties::RectangleProperties::ItemSetChanged(SfxItemSet 
const&)
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/svx/source/sdr/properties/rectangleproperties.cxx:54
    /opt/collaboraoffice/program/libmergedlo.so
            sdr::properties::DefaultProperties::SetObjectItem(SfxPoolItem 
const&)
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/svx/source/sdr/properties/defaultproperties.cxx:120
    /opt/collaboraoffice/program/libscfiltlo.so
            XclTxo::XclTxo(XclExpRoot const&, EditTextObject const&, SdrObject*)
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/include/svl/cenumitm.hxx:26
    /opt/collaboraoffice/program/libscfiltlo.so
            XclObjComment::XclObjComment(XclExpObjectManager&, tools::Rectangle 
const&, EditTextObject const&, SdrCaptionObj*, bool, ScAddress const&, 
tools::Rectangle const&, tools::Rectangle const&)
                    
/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/unique_ptr.h:179
    /opt/collaboraoffice/program/libscfiltlo.so
            XclExpNote::XclExpNote(XclExpRoot const&, ScAddress const&, 
ScPostIt const*, rtl::OUString const&)
                    /opt/rh/devtoolset-10/root/usr/include/c++/10/tuple:137
    /opt/collaboraoffice/program/libscfiltlo.so
            ExcTable::FillAsTableXml()
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/include/rtl/ref.hxx:65
    /opt/collaboraoffice/program/libscfiltlo.so
            ExcDocument::ReadDoc()
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/sc/source/filter/excel/excdoc.cxx:747
    /opt/collaboraoffice/program/libscfiltlo.so
            XclExpXmlStream::exportDocument()
                    
/home/collabora/jenkins/workspace/build_linux_co-2021_online_snapshot/sc/source/filter/excel/xestream.cxx:1107
    /opt/collaboraoffice/program/libooxlo.so
    
    Change-Id: I248395cca1e2da37208fc449aca731175a5aa368
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133914
    Tested-by: Andras Timar <andras.ti...@collabora.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    (cherry picked from commit c17c410706eab6e4d449b2a20a51bf3702329341)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143583
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 5b41a6227b54..d906c1d24c36 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1657,13 +1657,16 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
     {
         bool bPrintTwipsMsgs = comphelper::LibreOfficeKit::isCompatFlagSet(
                 comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs);
-        mpLOKDrawView.reset(bPrintTwipsMsgs ?
-            new ScLOKDrawView(
-                &rDevice,
-                mrViewData) :
-            new FmFormView(
-                *pModel,
-                &rDevice));
+        if (!mpLOKDrawView)
+        {
+            mpLOKDrawView.reset(bPrintTwipsMsgs ?
+                new ScLOKDrawView(
+                    &rDevice,
+                    mrViewData) :
+                new FmFormView(
+                    *pModel,
+                    &rDevice));
+        }
 
         mpLOKDrawView->SetNegativeX(bLayoutRTL);
         mpLOKDrawView->ShowSdrPage(mpLOKDrawView->GetModel()->GetPage(nTab));

Reply via email to