summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2023-04-02 00:06:41 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2023-04-02 10:10:28 +0200
commit341900458578cb7d875efeee1ffdc9a0429e92b7 (patch)
treecfb43ed7bcd1a4a0a7ba8e8f892c08e559db3da4 /sc/source/core
parentae1285a593173cddf002f9b9ca9a6f1003f49285 (diff)
Explicitly check for cell styles
Now that this method is used also for drawing styles. Overlooked this in 685a864cfc40227559ed55f6273fd118174e8e6e ("sc drawstyles: Clipboard support"). Change-Id: I7218b735d743841106606739fbd72e45a1d4bf1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149923 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/stlpool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index 6a450483d15e..6fa08b8112de 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -162,7 +162,7 @@ void ScStyleSheetPool::CopyStyleFrom( SfxStyleSheetBasePool* pSrcPool,
rDestSet.Put( SvxSetItem( ATTR_PAGE_FOOTERSET, aDestSub ) );
}
}
- else // cell styles
+ else if ( eFamily == SfxStyleFamily::Para )
{
// number format exchange list has to be handled here, too