[Libreoffice-commits] core.git: vcl/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Sat Sep 26 10:51:34 UTC 2020


 vcl/source/control/field2.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 25e7a5923edc507a2511dc17e3c238cd0f37e642
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Sep 25 12:28:04 2020 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Sep 26 12:50:49 2020 +0200

    Fix typo in code
    
    It passed "make check" on Linux
    
    Change-Id: I5bc56a0dea4a157b276a59bd1050b08120b948ea
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103455
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index fc81066ef0f6..8df442fff60b 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2796,8 +2796,8 @@ tools::Time TimeFormatter::GetTime() const
 
     if ( GetField() )
     {
-        bool bAllowMailformed = ImplAllowMalformedInput();
-        if ( TextToTime( GetField()->GetText(), aTime, GetFormat(), IsDuration(), ImplGetLocaleDataWrapper(), !bAllowMailformed ) )
+        bool bAllowMalformed = ImplAllowMalformedInput();
+        if ( TextToTime( GetField()->GetText(), aTime, GetFormat(), IsDuration(), ImplGetLocaleDataWrapper(), !bAllowMalformed ) )
         {
             if ( aTime > GetMax() )
                 aTime = GetMax();
@@ -2806,7 +2806,7 @@ tools::Time TimeFormatter::GetTime() const
         }
         else
         {
-            if ( bAllowMailformed )
+            if ( bAllowMalformed )
                 aTime = tools::Time( 99, 99, 99 ); // set invalid time
             else
                 aTime = maLastTime;


More information about the Libreoffice-commits mailing list