public void cutSelection(boolean createUndo) {
		CPRect sel = getSelection();
		if (sel.isEmpty()) {
			return;
		}

		clipboard = new CPClip(new CPColorBmp(curLayer, sel), sel.left, sel.top);

		if (createUndo) {
			addUndo(new CPUndoCut(clipboard.bmp, sel.left, sel.top, getActiveLayerNb(), sel));
		}

		curLayer.clear(sel, 0);
		invalidateFusion();
	}