summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-08 17:48:15 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-09 02:44:07 +0100
commitb1c9d167ef96df5c3a781ed825d789505a325324 (patch)
tree9e855f7cd2dbe83ca6d4dc35c0c5b9ca81501780
parent1eecb1841e8692e03e8e0aecaa99e3e7a3300d4c (diff)
copy settings for RTL with sheets, fdo#45768
-rw-r--r--sc/source/core/data/documen2.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index d79e52d11ee7..81031b9299a5 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -910,6 +910,10 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
// Copy the custom print range if exists.
maTabs[nNewPos]->CopyPrintRange(*maTabs[nOldPos]);
+
+ // Copy the RTL settings
+ maTabs[nNewPos]->SetLayoutRTL(maTabs[nOldPos]->IsLayoutRTL());
+ maTabs[nNewPos]->SetLoadingRTL(maTabs[nOldPos]->IsLoadingRTL());
}
else
SetAutoCalc( bOldAutoCalc );
@@ -945,6 +949,10 @@ sal_uLong ScDocument::TransferTab( ScDocument* pSrcDoc, SCTAB nSrcPos,
pSrcDoc->GetName(nSrcPos, aName);
CreateValidTabName(aName);
bValid = InsertTab(nDestPos, aName);
+
+ // Copy the RTL settings
+ maTabs[nDestPos]->SetLayoutRTL(pSrcDoc->maTabs[nSrcPos]->IsLayoutRTL());
+ maTabs[nDestPos]->SetLoadingRTL(pSrcDoc->maTabs[nDestPos]->IsLoadingRTL());
}
else // bestehende Tabelle ersetzen
{