Attached patch fixes a copy-paste error in the condition.
Seconds used twice instead of Hours.
-- 
Pozdrawiam,
Mariusz Dykerek
diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx
index 6c5f8d9..3757bd0 100644
--- a/sdext/source/presenter/PresenterTimer.cxx
+++ b/sdext/source/presenter/PresenterTimer.cxx
@@ -511,7 +511,7 @@ void PresenterClockTimer::CheckCurrentTime (const TimeValue& rCurrentTime)
         {
             if (aDateTime.Seconds != maDateTime.Seconds
                 || aDateTime.Minutes != maDateTime.Minutes
-                || aDateTime.Seconds != maDateTime.Seconds)
+                || aDateTime.Hours != maDateTime.Hours)
             {
                 // The displayed part of the current time has changed.
                 // Prepare to call the listeners.
Context
- [Libreoffice] [PATCH] A copy-paste bug detected by cppcheck at	sdext/source/presenter/PresenterTimer.cxx:512 · Mariusz Dykierek
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.