diff --git a/harbour/contrib/hbct/ctmisc.prg b/harbour/contrib/hbct/ctmisc.prg index 8f2949d2c1..bdd55510e0 100644 --- a/harbour/contrib/hbct/ctmisc.prg +++ b/harbour/contrib/hbct/ctmisc.prg @@ -71,8 +71,8 @@ FUNCTION CENTER( c, n, p, lMode ) DEFAULT c TO "" IF ISLOGICAL( p ) - lMode := c - c := NIL + lMode := p + p := NIL ELSE DEFAULT lMode TO .F. ENDIF