Skip to content

Commit 2340c45

Browse files
committed
fix merge problems
1 parent 1c7b6b5 commit 2340c45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,13 +1160,13 @@ QJsonObject CemrgCommonUtils::CreateJSONObject(QStringList keys_list, QStringLis
11601160
return jsonObj;
11611161
}
11621162

1163-
mitk::Image::Pointer CemrgCommonUtils::ImageFromSurfaceMesh(mitk::Surface::Pointer surf, double origin[3], double spacing[3]){
1163+
mitk::Image::Pointer CemrgCommonUtils::ImageFromSurfaceMesh(mitk::Surface::Pointer surf, double origin[3], double spacing[3], int pad_num){
11641164
vtkSmartPointer<vtkPolyData> pd = surf->GetVtkPolyData();
11651165
double bounds[6];
11661166
pd->GetBounds(bounds);
11671167

11681168
// prepare for padding (pad_num=0 by default, so it does not affect)
1169-
for (int ix; ix<3; ix++) {
1169+
for (int ix = 0; ix < 3; ix++) {
11701170
double pad_offset = pad_num*spacing[ix];
11711171
bounds[2*ix] -= pad_offset;
11721172
bounds[2*ix + 1] += pad_offset;

0 commit comments

Comments
 (0)