summaryrefslogtreecommitdiffstats
path: root/ktuberling/action.cpp
blob: a55deb04996965b5a096ebf3d56125be54205bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* -------------------------------------------------------------
   KDE Tuberling
   Action stored in the undo buffer
   mailto:e.bischoff@noos.fr
 ------------------------------------------------------------- */

#include "action.h"

// Constructor
Action::Action
	(const ToDraw *drawn1, int zOrder1,
	 const ToDraw *drawn2, int zOrder2)
{
  if (drawn1) drawnBefore = *drawn1;
  zOrderBefore = zOrder1;

  if (drawn2) drawnAfter = *drawn2;
  zOrderAfter = zOrder2;
}