Dont invalidate paint buffer when selecting (#4911)

This commit is contained in:
kornes 2023-11-08 21:19:18 +00:00 committed by GitHub
parent fcc5f4b3df
commit c8e03b4ad7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@
- Dev: Add a compile-time flag `USE_SYSTEM_MINIAUDIO` which can be turned on to use the system miniaudio. (#4867)
- Dev: Update vcpkg to use Qt6. (#4872)
- Dev: Replace `boost::optional` with `std::optional`. (#4877)
- Dev: Improve performance by reducing repaints caused by selections. (#4889)
- Dev: Improve performance of selecting text. (#4889, #4911)
- Dev: Removed direct dependency on Qt 5 compatibility module. (#4906)
- Dev: Refactor `DebugCount` and add copy button to debug popup. (#4921)
- Dev: Changed lifetime of context menus. (#4924)

View file

@ -200,7 +200,7 @@ void MessageLayout::paint(const MessagePaintContext &ctx)
{
QPixmap *pixmap = this->ensureBuffer(ctx.painter, ctx.canvasWidth);
if (!this->bufferValid_ || !ctx.selection.isEmpty())
if (!this->bufferValid_)
{
this->updateBuffer(pixmap, ctx);
}