File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
itext/itext.layout/itext/layout/renderer Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1396,11 +1396,13 @@ protected internal virtual MinMaxWidth GetMinMaxWidth(float availableWidth) {
13961396 protected internal virtual bool SetMinMaxWidthBasedOnFixedWidth ( MinMaxWidth minMaxWidth ) {
13971397 // retrieve returns max width, if there is no width.
13981398 if ( HasAbsoluteUnitValue ( Property . WIDTH ) ) {
1399+ //Renderer may override retrieveWidth, double check is required.
13991400 float ? width = RetrieveWidth ( 0 ) ;
1400- System . Diagnostics . Debug . Assert ( width != null ) ;
1401- minMaxWidth . SetChildrenMaxWidth ( ( float ) width ) ;
1402- minMaxWidth . SetChildrenMinWidth ( ( float ) width ) ;
1403- return true ;
1401+ if ( width != null ) {
1402+ minMaxWidth . SetChildrenMaxWidth ( ( float ) width ) ;
1403+ minMaxWidth . SetChildrenMinWidth ( ( float ) width ) ;
1404+ return true ;
1405+ }
14041406 }
14051407 return false ;
14061408 }
Original file line number Diff line number Diff line change 1- 6650368ed56846360542340f22201da270a441f2
1+ da5798b5cf162be5c1dd163f02f530299b6e46e3
You can’t perform that action at this time.
0 commit comments