Commit ef298bb4 authored by Boudewijn Rempt's avatar Boudewijn Rempt

fix test build

parent 04cef032
...@@ -127,13 +127,13 @@ KisDocument* createCompleteDocument() ...@@ -127,13 +127,13 @@ KisDocument* createCompleteDocument()
cloneLayer1->setY(100); cloneLayer1->setY(100);
KisSelectionSP pixelSelection = createPixelSelection(paintLayer1->paintDevice()); KisSelectionSP pixelSelection = createPixelSelection(paintLayer1->paintDevice());
KisFilterConfigurationSP kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration(group2->projection()); KisFilterConfigurationSP kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration();
Q_ASSERT(kfc); Q_ASSERT(kfc);
KisAdjustmentLayerSP adjustmentLayer1 = new KisAdjustmentLayer(image, "adjustmentLayer1", kfc, pixelSelection); KisAdjustmentLayerSP adjustmentLayer1 = new KisAdjustmentLayer(image, "adjustmentLayer1", kfc, pixelSelection);
kfc = 0; // kfc cannot be shared! kfc = 0; // kfc cannot be shared!
KisSelectionSP vectorSelection = createVectorSelection(paintLayer2->paintDevice(), image); KisSelectionSP vectorSelection = createVectorSelection(paintLayer2->paintDevice(), image);
kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration(group2->projection()); kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration();
KisAdjustmentLayerSP adjustmentLayer2 = new KisAdjustmentLayer(image, "adjustmentLayer2", kfc, vectorSelection); KisAdjustmentLayerSP adjustmentLayer2 = new KisAdjustmentLayer(image, "adjustmentLayer2", kfc, vectorSelection);
kfc = 0; // kfc cannot be shared! kfc = 0; // kfc cannot be shared!
...@@ -163,7 +163,7 @@ KisDocument* createCompleteDocument() ...@@ -163,7 +163,7 @@ KisDocument* createCompleteDocument()
KisFilterMaskSP filterMask1 = new KisFilterMask(); KisFilterMaskSP filterMask1 = new KisFilterMask();
filterMask1->setName("filterMask1"); filterMask1->setName("filterMask1");
kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration(group2->projection()); kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration();
filterMask1->setFilter(kfc); filterMask1->setFilter(kfc);
kfc = 0; // kfc cannot be shared! kfc = 0; // kfc cannot be shared!
...@@ -173,7 +173,7 @@ KisDocument* createCompleteDocument() ...@@ -173,7 +173,7 @@ KisDocument* createCompleteDocument()
KisFilterMaskSP filterMask2 = new KisFilterMask(); KisFilterMaskSP filterMask2 = new KisFilterMask();
filterMask2->setName("filterMask2"); filterMask2->setName("filterMask2");
kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration(group2->projection()); kfc = KisFilterRegistry::instance()->get("pixelize")->defaultConfiguration();
filterMask2->setFilter(kfc); filterMask2->setFilter(kfc);
kfc = 0; // kfc cannot be shared! kfc = 0; // kfc cannot be shared!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment