diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2019-01-03 08:51:53 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-01-03 08:51:53 +0100 |
commit | a91f0e9d95eb0391529c244b3d8469e3cacf9967 (patch) | |
tree | 4790223f2716c8a9a4b37eca3686b0d4000fdb8b /sc | |
parent | e9adb0201c52777ff2db221e0a249df24a34568d (diff) | |
parent | 808cc4d5fd87e6e6719a4a16f815e5897608bd2d (diff) |
Merge branch 'libreoffice-6-1' into distro/lhm/libreoffice-6-1+backports
Change-Id: I6727793a020df6b26df7bde4202e9eab43625a1b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/dpglobal.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/dpgroup.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLExportDataPilot.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/condformat/condformatdlg.cxx | 6 | ||||
-rw-r--r-- | sc/uiconfig/scalc/ui/textimportcsv.ui | 6 |
6 files changed, 17 insertions, 6 deletions
diff --git a/sc/inc/dpglobal.hxx b/sc/inc/dpglobal.hxx index 295af86db148..0a5b6e94dc6b 100644 --- a/sc/inc/dpglobal.hxx +++ b/sc/inc/dpglobal.hxx @@ -39,7 +39,7 @@ enum class PivotFunc { Auto = 0x1000 }; namespace o3tl { - template<> struct typed_flags<PivotFunc> : is_typed_flags<PivotFunc, 0x11ff> {}; + template<> struct typed_flags<PivotFunc> : is_typed_flags<PivotFunc, 0x1fff> {}; } struct ScDPValue diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx index dd81548777a3..8a9ec6714561 100644 --- a/sc/source/core/data/dpgroup.cxx +++ b/sc/source/core/data/dpgroup.cxx @@ -1030,7 +1030,11 @@ long ScDPGroupTableData::Compare(long nDim, long nDataId1, long nDataId2) { if ( getIsDataLayoutDimension(nDim) ) return 0; - return ScDPItemData::Compare( *GetMemberById(nDim, nDataId1),*GetMemberById(nDim, nDataId2) ); + const ScDPItemData* rItem1 = GetMemberById(nDim, nDataId1); + const ScDPItemData* rItem2 = GetMemberById(nDim, nDataId2); + if (rItem1 == nullptr || rItem2 == nullptr) + return 0; + return ScDPItemData::Compare( *rItem1,*rItem2); } #if DUMP_PIVOT_TABLE diff --git a/sc/source/filter/xml/XMLExportDataPilot.cxx b/sc/source/filter/xml/XMLExportDataPilot.cxx index 436cf515ed1e..df52e39f8648 100644 --- a/sc/source/filter/xml/XMLExportDataPilot.cxx +++ b/sc/source/filter/xml/XMLExportDataPilot.cxx @@ -492,6 +492,7 @@ void ScXMLExportDataPilot::WriteLevels(const ScDPSaveDimension* pDim) ::sax::Converter::convertBool(sBuffer, pDim->GetShowEmpty()); rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_SHOW_EMPTY, sBuffer.makeStringAndClear()); } + if (rExport.getDefaultVersion() > SvtSaveOptions::ODFVER_012) { OUStringBuffer sBuffer; ::sax::Converter::convertBool(sBuffer, pDim->GetRepeatItemLabels()); diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index c7131e4e5b08..8cd6ebc11085 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -3245,7 +3245,7 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount) { GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes( aCell.nNumberFormat, pDoc->GetValue(aCell.maCellAddress)); - if( getDefaultVersion() >= SvtSaveOptions::ODFVER_012 ) + if( getDefaultVersion() > SvtSaveOptions::ODFVER_012 ) { GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes( aCell.nNumberFormat, pDoc->GetValue(aCell.maCellAddress), false, XML_NAMESPACE_CALC_EXT, false ); diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx index f5296aef037d..37ec98066fc8 100644 --- a/sc/source/ui/condformat/condformatdlg.cxx +++ b/sc/source/ui/condformat/condformatdlg.cxx @@ -673,7 +673,13 @@ void ScCondFormatDlg::SetReference(const ScRange& rRef, ScDocument*) OUString aRefStr(rRef.Format(nFlags, mpViewData->GetDocument(), ScAddress::Details(mpViewData->GetDocument()->GetAddressConvention(), 0, 0))); if (pEdit != mpEdRange) + { + Selection sel = pEdit->GetSelection(); + sel.Justify(); // in case of RtL selection + sel.Max() = sel.Min() + aRefStr.getLength(); pEdit->ReplaceSelected(aRefStr); + pEdit->SetSelection(sel); // to replace it again with next drag event + } else pEdit->SetRefString( aRefStr ); updateTitle(); diff --git a/sc/uiconfig/scalc/ui/textimportcsv.ui b/sc/uiconfig/scalc/ui/textimportcsv.ui index 106f7b6840d5..13cc41491347 100644 --- a/sc/uiconfig/scalc/ui/textimportcsv.ui +++ b/sc/uiconfig/scalc/ui/textimportcsv.ui @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.20.4 --> +<!-- Generated with glade 3.22.1 --> <interface domain="sc"> <requires lib="gtk+" version="3.18"/> <requires lib="LibreOffice" version="1.0"/> @@ -311,7 +311,7 @@ <packing> <property name="left_attach">0</property> <property name="top_attach">1</property> - <property name="width">4</property> + <property name="width">2</property> </packing> </child> <child> @@ -329,7 +329,7 @@ <packing> <property name="left_attach">2</property> <property name="top_attach">1</property> - <property name="width">4</property> + <property name="width">2</property> </packing> </child> <child> |