Commit 4994c746 authored by Hossain Mahmud's avatar Hossain Mahmud
Browse files

minor fix

parent 577091b3
...@@ -431,7 +431,9 @@ namespace campvis { ...@@ -431,7 +431,9 @@ namespace campvis {
if (_selectedPipeline == nullptr) if (_selectedPipeline == nullptr)
return; return;
AbstractProcessor* p = ProcessorFactory::getRef().createProcessor(name, &_selectedPipeline->getCanvasSize()); IVec2Property temp = _selectedPipeline->getCanvasSize();
IVec2Property *viewPort = new IVec2Property(temp.getName(), temp.getTitle(), temp.getValue(), temp.getMinValue(), temp.getMaxValue(), temp.getStepValue());
AbstractProcessor* p = ProcessorFactory::getRef().createProcessor(name, viewPort);
if (p == nullptr) if (p == nullptr)
return; return;
......
...@@ -199,7 +199,7 @@ namespace campvis { ...@@ -199,7 +199,7 @@ namespace campvis {
* Returns the canvas size * Returns the canvas size
* \return The IVec2Property with current canvas size on it * \return The IVec2Property with current canvas size on it
*/ */
IVec2Property getCanvasSize() {return _canvasSize;} IVec2Property& getCanvasSize() {return _canvasSize;}
/// Signal emitted at the end of AbstractPipeline::init() /// Signal emitted at the end of AbstractPipeline::init()
sigslot::signal0 s_init; sigslot::signal0 s_init;
......
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