Skip to content

Commit 442dd42

Browse files
committed
Bugfix from 'relation-weight-visualisation'
2 parents d00101c + 6eff87c commit 442dd42

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DsmSuite.DsmViewer.View/Resources/Themes/LightTheme.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<SolidColorBrush x:Key="MatrixColorMatch" po:Freeze="True">#ff0000</SolidColorBrush>
2929
<SolidColorBrush x:Key="MatrixColorBookmark" po:Freeze="True">#00ff00</SolidColorBrush>
3030

31-
<SolidColorBrush x:Key="CellWeightColor" po:Freeze="True">#000000</SolidColorBrush>
31+
<SolidColorBrush x:Key="CellWeightColor" po:Freeze="True">#606060</SolidColorBrush>
3232

3333
<sys:Double x:Key="HighlightFactorHovered" >1.1</sys:Double>
3434
<sys:Double x:Key="HighlightFactorSelected" >1.2</sys:Double>

DsmSuite.DsmViewer.ViewModel/Matrix/MatrixViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ private void DefineCellContent()
599599
int i = buckets.Count-1;
600600
while (_cellWeights[row][column] < buckets[i])
601601
i--;
602+
if (i == 0) // Bucket 0 is for weight 0 exclusively
603+
i = 1;
602604
_weightPercentiles[row].Add(i / (double) _nrWeightBuckets);
603605
}
604606
}

0 commit comments

Comments
 (0)