Skip to content

Commit

Permalink
Merge pull request #430 from neutronimaging/issue428-releaseissues
Browse files Browse the repository at this point in the history
Fixed some issues detected during release test
  • Loading branch information
anderskaestner authored Mar 23, 2020
2 parents f2a9f79 + 310999d commit 6526dcc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions applications/muhrec/src/piercingpointdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
<widget class="QtAddons::uxROIWidget" name="widgetEstimationROI" native="true">
<property name="minimumSize">
<size>
<width>160</width>
<height>120</height>
<width>220</width>
<height>145</height>
</size>
</property>
</widget>
Expand Down Expand Up @@ -173,6 +173,7 @@
<container>1</container>
<slots>
<signal>valueChanged(int,int,int,int)</signal>
<signal>toggled(bool)</signal>
</slots>
</customwidget>
</customwidgets>
Expand Down
2 changes: 2 additions & 0 deletions core/algorithms/ImagingAlgorithms/src/averageimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ void string2enum(std::string str, ImagingAlgorithms::AverageImage::eAverageMetho
{
std::map<std::string,ImagingAlgorithms::AverageImage::eAverageMethod> methods;

methods["ImageSelectSingle"]=ImagingAlgorithms::AverageImage::ImageSelectSingle;
methods["ImageSum"]=ImagingAlgorithms::AverageImage::ImageSum;
methods["ImageAverage"]=ImagingAlgorithms::AverageImage::ImageAverage;
methods["ImageMedian"]=ImagingAlgorithms::AverageImage::ImageMedian;
Expand All @@ -242,6 +243,7 @@ std::string enum2string(ImagingAlgorithms::AverageImage::eAverageMethod eam)
std::string str;

switch (eam) {
case ImagingAlgorithms::AverageImage::ImageSelectSingle: str="ImageSelectSingle"; break;
case ImagingAlgorithms::AverageImage::ImageSum: str="ImageSum"; break;
case ImagingAlgorithms::AverageImage::ImageAverage: str="ImageAverage"; break;
case ImagingAlgorithms::AverageImage::ImageMedian: str="ImageMedian"; break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
<property name="toolTip">
<string>Selects image combination method</string>
</property>
<item>
<property name="text">
<string>Single image</string>
</property>
</item>
<item>
<property name="text">
<string>Sum</string>
Expand Down

0 comments on commit 6526dcc

Please sign in to comment.