diff options
author | Eike Rathke <erack@redhat.com> | 2017-03-09 22:08:38 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-03-09 22:10:22 +0100 |
commit | b3354ad2482737b49bd8d7593d355671197c4551 (patch) | |
tree | db53a89530a47c00349529f978cccc4b943f5c20 /sc/qa/unit/ucalc_sort.cxx | |
parent | 60c5b392b77f15d11dd98890565abc68daee02a8 (diff) |
sprinkle some drawing layers over test cases
... so things actually work like intended and creation of caption objects
doesn't silently fail. Well, it does SAL_WARN or OSL_ENSURE but that's never
displayed unless a test fails.
Change-Id: Ibf4cc075cc3d6dadbe8f6208b2949310124b5749
Diffstat (limited to 'sc/qa/unit/ucalc_sort.cxx')
-rw-r--r-- | sc/qa/unit/ucalc_sort.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index b24a3dae9ca0..7a071c37269f 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -31,6 +31,9 @@ void Test::testSort() { m_pDoc->InsertTab(0, "test1"); + // We need a drawing layer in order to create caption objects. + m_pDoc->InitDrawLayer(&getDocShell()); + ScRange aDataRange; ScAddress aPos(0,0,0); { |