mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[suggested-refactoring] Call setupAntialiasing() before getting fontRenderContext
May help for IDEA-327297 GitOrigin-RevId: 05f20546d71e54b9a6f7b1bb51387769b141afab
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9b47be425b
commit
2586b12f70
+1
-4
@@ -93,14 +93,11 @@ class SignatureChangePresentation(
|
||||
}
|
||||
|
||||
fun paint(g: Graphics2D, bounds: Rectangle) {
|
||||
UISettings.setupAntialiasing(g)
|
||||
renderAll(g, g.fontRenderContext, bounds)
|
||||
}
|
||||
|
||||
private fun renderAll(g: Graphics2D?, fontRenderContext: FontRenderContext, bounds: Rectangle): ConnectionRouter {
|
||||
if (g != null) {
|
||||
UISettings.setupAntialiasing(g)
|
||||
}
|
||||
|
||||
val lineHeight = lineHeight(fontRenderContext)
|
||||
val oldSignatureSize = signatureDimensions(model.oldSignature, fontRenderContext)
|
||||
val newSignatureSize = signatureDimensions(model.newSignature, fontRenderContext)
|
||||
|
||||
Reference in New Issue
Block a user