﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2939	_GUICtrlStatusBar_Create zeros part widths when PartWidth array given but PartText not same size array	anonymous	Melba23	"If _GUICtrlStatusBar_Create is called with an array of $vPartWidth but $vPartText is either """" or a smaller array, then the PartWidths are incorrectly set to """" (so treated as 0)

This is most likely to be seen when the caller does not wish to set any $vPartText but wishes to set the styles.  Calling the function with the given $vPartsText default of """" and a style results in all parts being created with width of 0.

This is the part of the code in GuiStatusBar.au3 with the problem

{{{
    ; if partwidth array is not same size as parttext array use larger sized array for size
    If UBound($aPartWidth) <> UBound($aPartText) Then
        Local $iLast
        If UBound($aPartWidth) > UBound($aPartText) Then ; width array is larger
            $iLast = UBound($aPartText)
            ReDim $aPartText[UBound($aPartWidth)]
            For $x = $iLast To UBound($aPartText) - 1
                $aPartWidth[$x] = """"
	    Next
}}}

The $aPartWidth[$x] = """" should be  $aPartText[$x] = """".
(actually the whole loop is redundant as the redim has cleared the extra $aPartText elements anyway.)

This issue exists in 3.3.8.1, 3.3.12.0 and 3.3.13.19.

Regards[[BR]]
Alan Parry"	Bug	closed	3.3.13.20	AutoIt	3.3.12.0	None	Fixed	_GUICtrlStatusBar_Create	
