Kaydet (Commit) d1d44e1d authored tarafından Justin Luth's avatar Justin Luth Kaydeden (comit) Heiko Tietze

tdf#124743 TipOfTheDay: Next tip should not be random

A user pressing "next tip" will expect to cycle sequentially
through the list of tips, and not get a random one each time.

Change-Id: I331d35d623b6449a9daef407a498b4ba08eaff6f
Reviewed-on: https://gerrit.libreoffice.org/72099
Tested-by: Jenkins
Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
üst ae854837
......@@ -127,8 +127,8 @@ IMPL_LINK_NOARG(TipOfTheDayDialog, OnLinkClick, weld::LinkButton&, void)
IMPL_LINK_NOARG(TipOfTheDayDialog, OnNextClick, weld::Button&, void)
nCurrentTip = rand() % nNumberOfTips;
nCurrentTip = (nCurrentTip + 1) % nNumberOfTips;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment