qt, qt5: fix uninitialized result in TQtComboBox.getText

git-svn-id: trunk@55043 -
This commit is contained in:
ondrej 2017-05-22 13:50:57 +00:00
parent 3dbd19358b
commit 675c59e5e6
2 changed files with 2 additions and 0 deletions

View File

@ -11279,6 +11279,7 @@ end;
function TQtComboBox.getText: WideString;
begin
Result := '';
QComboBox_currentText(QComboBoxH(Widget), @Result);
if FOwnerDrawn and (FLineEdit = nil) and
(Result = '') and (Result <> FText) then

View File

@ -11248,6 +11248,7 @@ end;
function TQtComboBox.getText: WideString;
begin
Result := '';
QComboBox_currentText(QComboBoxH(Widget), @Result);
if FOwnerDrawn and (FLineEdit = nil) and
(Result = '') and (Result <> FText) then