Skip to content

Commit

Permalink
Fixes null-ref if toolbar is not shown in titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Mar 12, 2017
1 parent 0b7c972 commit 90c3bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fluent.Ribbon/Controls/RibbonTitleBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private void Update(Size constraint)
endX = Math.Max(0, endX);

// Ensure that startX respect min width of QuickAccessToolBar
startX = Math.Max(startX, this.QuickAccessToolBar.MinWidth);
startX = Math.Max(startX, this.QuickAccessToolBar?.MinWidth ?? 0);

// Set contextual groups position and size
this.itemsContainer.Measure(infinity);
Expand Down

0 comments on commit 90c3bcc

Please sign in to comment.