Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUACAMOLE-2018: Convert layer to canvas during exportState() only if layer is non-empty. #1050

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

mike-jumper
Copy link
Contributor

A <canvas> cannot have a width or height of zero. We do have a check for this, but we're actually still calling toCanvas() regardless of that check, breaking playback of session recordings depending on the content of the recording.

This change corrects this by moving the call to toCanvas() such that it only occurs if the layer has non-zero width and height.

@necouchman necouchman merged commit a3b8146 into apache:patch Jan 15, 2025
1 check passed
@mike-jumper mike-jumper deleted the fix-recording-playback branch January 15, 2025 21:06
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.

2 participants