~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/ui/tests/kis_kra_savexml_visitor_test.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    QDomElement image = dom.createElement("IMAGE"); // Legacy!
64
64
    KisSaveXmlVisitor visitor(dom, image, count, true);
65
65
 
66
 
    KisImageWSP img = doc->image();
67
 
    Q_ASSERT(img);
 
66
    Q_ASSERT(doc->image());
68
67
 
69
68
    QStringList list;
70
69
 
 
70
    doc->image()->lock();
 
71
    
71
72
    KisCountVisitor cv(list, KoProperties());
72
 
    img->rootLayer()->accept(cv);
 
73
    doc->image()->rootLayer()->accept(cv);
73
74
 
74
 
    img->rootLayer()->accept(visitor);
 
75
    doc->image()->rootLayer()->accept(visitor);
75
76
 
76
77
    QCOMPARE((int)visitor.m_count, (int)cv.count());
77
78