From 6af33c344e4766006c8324660870499e8a95396f Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Wed, 2 Dec 2020 12:18:35 +0000 Subject: [PATCH 1/2] WidgetPod: change not laid out panic to warning --- druid/src/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/druid/src/core.rs b/druid/src/core.rs index ca5c20ead0..33ab292d1c 100644 --- a/druid/src/core.rs +++ b/druid/src/core.rs @@ -596,7 +596,7 @@ impl> WidgetPod { // log if we seem not to be laid out when we should be if self.state.is_expecting_set_origin_call && !event.should_propagate_to_hidden() { - debug_panic!( + log::warn!( "{:?} received an event ({:?}) without having been laid out. \ This likely indicates a missed call to set_layout_rect.", ctx.widget_id(), From 567298ff5909bfd905889dbe27db7b738b29874f Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Wed, 2 Dec 2020 13:34:57 +0530 Subject: [PATCH 2/2] Update Changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 548282b4be..0f29ff23d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -124,7 +124,7 @@ You can find its changes [documented below](#060---2020-06-01). - Don't drop events while showing file dialogs ([#1302], [#1328] by [@jneem]) - Ensure that `LifeCycle::WidgetAdded` is the first thing a widget sees. ([#1259] by [@finnerale]) - Fix a missed call to `CloseClipboard` on Windows. ([#1410] by [@andrewhickman]) - +- WidgetPod: change not laid out `debug_panic` to warning ([#1441] by [@Maan2003]) ### Visual - `TextBox` stroke remains inside its `paint_rect`. ([#1007] by [@jneem]) @@ -357,6 +357,7 @@ Last release without a changelog :( [@JAicewizard]: https://github.com/JAicewizard [@andrewhickman]: https://github.com/andrewhickman [@colinfruit]: https://github.com/colinfruit +[@Maan2003]: https://github.com/Maan2003 [#599]: https://github.com/linebender/druid/pull/599 [#611]: https://github.com/linebender/druid/pull/611 @@ -542,6 +543,7 @@ Last release without a changelog :( [#1371]: https://github.com/linebender/druid/pull/1371 [#1410]: https://github.com/linebender/druid/pull/1410 [#1438]: https://github.com/linebender/druid/pull/1438 +[#1441]: https://github.com/linebender/druid/pull/1441 [Unreleased]: https://github.com/linebender/druid/compare/v0.6.0...master [0.6.0]: https://github.com/linebender/druid/compare/v0.5.0...v0.6.0