Kaydet (Commit) b1c9d167 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

copy settings for RTL with sheets, fdo#45768

üst 1eecb184
...@@ -910,6 +910,10 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM ...@@ -910,6 +910,10 @@ bool ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
// Copy the custom print range if exists. // Copy the custom print range if exists.
maTabs[nNewPos]->CopyPrintRange(*maTabs[nOldPos]); maTabs[nNewPos]->CopyPrintRange(*maTabs[nOldPos]);
// Copy the RTL settings
maTabs[nNewPos]->SetLayoutRTL(maTabs[nOldPos]->IsLayoutRTL());
maTabs[nNewPos]->SetLoadingRTL(maTabs[nOldPos]->IsLoadingRTL());
} }
else else
SetAutoCalc( bOldAutoCalc ); SetAutoCalc( bOldAutoCalc );
...@@ -945,6 +949,10 @@ sal_uLong ScDocument::TransferTab( ScDocument* pSrcDoc, SCTAB nSrcPos, ...@@ -945,6 +949,10 @@ sal_uLong ScDocument::TransferTab( ScDocument* pSrcDoc, SCTAB nSrcPos,
pSrcDoc->GetName(nSrcPos, aName); pSrcDoc->GetName(nSrcPos, aName);
CreateValidTabName(aName); CreateValidTabName(aName);
bValid = InsertTab(nDestPos, 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 else // bestehende Tabelle ersetzen
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment