Skip to content

Commit fdf7f9e

Browse files
committed
Merge branch 'master' of github.com:sandialabs/InterSpec
2 parents 6388f25 + 854e793 commit fdf7f9e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/InterSpec.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7467,11 +7467,12 @@ void InterSpec::initMaterialDbAndSuggestions()
74677467
WSuggestionPopup::Options popupOptions;
74687468
popupOptions.highlightBeginTag = "<b>"; //Open tag to highlight a match in a suggestion.
74697469
popupOptions.highlightEndTag = "</b>"; //Close tag to highlight a match in a suggestion.
7470-
popupOptions.listSeparator = ','; //(char) When editing a list of values, the separator used for different items.
7471-
popupOptions.whitespace = " \\t()"; //When editing a value, the whitespace characters ignored before the current value.
7472-
popupOptions.wordSeparators = "-_., ;()"; //To show suggestions based on matches of the edited value with parts of the suggestion.
7473-
popupOptions.appendReplacedText = ""; //When replacing the curr
7474-
m_shieldingSuggestion = new WSuggestionPopup( popupOptions );
7470+
popupOptions.listSeparator = '\0'; //(char) When editing a list of values, the separator used for different items.
7471+
popupOptions.whitespace = ""; //When editing a value, the whitespace characters ignored before the current value.
7472+
//popupOptions.wordSeparators = "-_., ;()"; //To show suggestions based on matches of the edited value with parts of the suggestion.
7473+
popupOptions.wordStartRegexp = "\\s|^|\\(|\\<"; // Instead of using .wordSeparators, we will use the regex option to start matching at whitespaces, start of line, open-paren, and boundaries of words (probably a bit duplicative).
7474+
popupOptions.appendReplacedText = ""; //
7475+
m_shieldingSuggestion = new WSuggestionPopup( popupOptions, this );
74757476
m_shieldingSuggestion->addStyleClass("suggestion");
74767477
#if( WT_VERSION < 0x3070000 ) //I'm not sure what version of Wt "wtNoReparent" went away.
74777478
m_shieldingSuggestion->setJavaScriptMember("wtNoReparent", "true");

src/ShieldingSourceDisplay.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7050,6 +7050,10 @@ ShieldingSourceDisplay::Chi2FcnShrdPtr ShieldingSourceDisplay::shieldingFitnessF
70507050
const bool fitHeight = mat ? select->fitRectangularHeightThickness() : false;
70517051
const bool fitDepth = mat ? select->fitRectangularDepthThickness() : false;
70527052

7053+
num_fit_params += fitWidth;
7054+
num_fit_params += fitHeight;
7055+
num_fit_params += fitDepth;
7056+
70537057
if( fitWidth )
70547058
inputPrams.Add( name + "_dx", width, std::max(2.5*PhysicalUnits::mm,0.25*width), 0, 1000.0*PhysicalUnits::m );
70557059
else

0 commit comments

Comments
 (0)