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

« back to all changes in this revision

Viewing changes to krita/image/commands/kis_image_change_layers_command.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:
44
44
void KisImageChangeLayersCommand::redo()
45
45
{
46
46
    setUndo(false);
 
47
    m_image->lock();
47
48
    m_image->setRootLayer(static_cast<KisGroupLayer*>(m_newRootLayer.data()));
 
49
    m_image->unlock();
 
50
    m_image->refreshGraph();
48
51
    m_image->notifyLayersChanged();
49
52
    setUndo(true);
50
53
}
52
55
void KisImageChangeLayersCommand::undo()
53
56
{
54
57
    setUndo(false);
 
58
    m_image->lock();
55
59
    m_image->setRootLayer(static_cast<KisGroupLayer*>(m_oldRootLayer.data()));
 
60
    m_image->unlock();
 
61
    m_image->refreshGraph();
56
62
    m_image->notifyLayersChanged();
57
63
    setUndo(true);
58
64
}