From ddc1b1586112401bae5dfccb3cfbd6e2608bc045 Mon Sep 17 00:00:00 2001 From: jujibo Date: Fri, 7 Oct 2011 16:13:02 +0000 Subject: [PATCH] Fix Return key for some values git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2066 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/jujiboutils/src/jdbgridutils.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/jujiboutils/src/jdbgridutils.pas b/components/jujiboutils/src/jdbgridutils.pas index eb1591041..84de365ec 100644 --- a/components/jujiboutils/src/jdbgridutils.pas +++ b/components/jujiboutils/src/jdbgridutils.pas @@ -296,7 +296,7 @@ begin if (not updated) then begin theValue := StrToDateTime(CellEditor.Caption); - if theValue <> Field.AsDateTime then + if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then begin Field.DataSet.DisableControls; Field.DataSet.Edit; @@ -457,7 +457,7 @@ begin if (not updated) then begin theValue := StrToTime(CellEditor.Caption); - if theValue <> Field.AsDateTime then + if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then begin Field.DataSet.DisableControls; Field.DataSet.Edit; @@ -616,7 +616,7 @@ begin if (not updated) then begin theValue := StrToDate(CellEditor.Caption); - if theValue <> Field.AsDateTime then + if FormatDateTime(DisplayFormat, theValue) <> FormatDateTime(DisplayFormat, Field.AsDateTime) then begin Field.DataSet.DisableControls; Field.DataSet.Edit;