Skip to content

Jlo fixes/my widgets recursion error inheritance#28

Open
johannes-lode wants to merge 16 commits intopvbrowser:masterfrom
johannes-lode:jlo-fixes/MyWidgets-recursion-error-inheritance
Open

Jlo fixes/my widgets recursion error inheritance#28
johannes-lode wants to merge 16 commits intopvbrowser:masterfrom
johannes-lode:jlo-fixes/MyWidgets-recursion-error-inheritance

Conversation

@johannes-lode
Copy link

Fix update error for widget tree on recursive tree walks.
This problem lead to browser crash, when recursion path was lost.

Johannes Lode and others added 16 commits January 21, 2019 16:11
To avoid time calculation errors by mixing absolute time values with
relative time value in the same class, the interface was changed for the
application of relative amounts of time against absolute points in time.

Added interface for simple formatting options of time differences.
Intermediate commit for transfer to another workstation.
Meanwhile added a proxy interface, so the traditional interface of
operating with two operands of rlTimeEx is available. 
One small exception is there of returning double for the difference 
of two rlTimeEx object by default and returning rlTimeEx objects only 
on request by casting the second operand to RelativeTime(rltime_object).
The widget tree recursion counter could have been reset unintentionally
(see left over assert()'s) while walking and maintaining the tree. This
led to browser crashes, maybe memory leaks and maybe CPU consumption. 

A redesign of the calling interface has proven to fix these problems 
which where visible in a large application.

Minor fix of control character interpretation, where under Womdows 7
CP1250 some user inputs triggered false positive replacements and some
missed replacements.
Assertions and type conversion rules ensure to combine only valid
types of time (only one absolute time in addition or subtraction, all
others need to be relative time values)
jlo-fixes/rltime-relative-time-adjustments

Conflicts:
	.gitignore - resolved by mix-in
	rllib/lib/lib.pro - resolved by mix-in
	rllib/lib/rltime_v2.cpp - resolved by using my version
	rllib/lib/rltime_v2.h - resolved by using my version
'origin/jlo-fixes/rltime-relative-time-adjustments' into
jlo-fixes/pvbrowser-qwtplotwidget-time-type
'origin/jlo-fixes/pvbrowser-qwtplotwidget-time-type' into
jlo-fixes/MyWidgets-recursion-error-inheritance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant