Source
356
356
}
357
357
Quantum<Vector<Double> > x(xv, "rad");
358
358
Quantum<Vector<Double> > y(yv, "rad");
359
359
try {
360
360
WCPolygon wpoly(
361
361
x, y, IPosition(_getDirectionAxes()),
362
362
getCsys(), RegionType::Abs
363
363
);
364
364
_setDirectionRegion(wpoly);
365
365
_extend();
366
-
} catch (ToLCRegionConversionError& err) {
366
+
} catch (const ToLCRegionConversionError& err) {
367
367
if (_requireImageRegion) {
368
368
throw(err);
369
369
} else {
370
370
ImageRegion defaultRegion;
371
371
_setDirectionRegion(defaultRegion);
372
372
_imageRegion = _directionRegion;
373
373
}
374
374
}
375
375
}
376
376
​