Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Krita
Commits
f11a08cf
Commit
f11a08cf
authored
Sep 29, 2020
by
Dmitry Kazakov
Browse files
Fix brush outline jumps when switching between documents of different zoom
BUG:427094
parent
b2131548
Changes
3
Hide whitespace changes
Inline
Side-by-side
libs/ui/KisViewManager.cpp
View file @
f11a08cf
...
...
@@ -521,6 +521,7 @@ void KisViewManager::setCurrentView(KisView *view)
d
->
currentImageView
->
notifyCurrentStateChanged
(
true
);
d
->
currentImageView
->
canvasController
()
->
activate
();
d
->
currentImageView
->
canvasController
()
->
setFocus
();
d
->
currentImageView
->
zoomManager
()
->
updateCurrentZoomResource
();
d
->
viewConnections
.
addUniqueConnection
(
image
(),
SIGNAL
(
sigSizeChanged
(
QPointF
,
QPointF
)),
...
...
libs/ui/kis_zoom_manager.cc
View file @
f11a08cf
...
...
@@ -223,6 +223,14 @@ void KisZoomManager::updateImageBoundsSnapping()
}
}
void
KisZoomManager
::
updateCurrentZoomResource
()
{
const
qreal
effectiveZoom
=
m_view
->
canvasBase
()
->
coordinatesConverter
()
->
effectiveZoom
();
m_view
->
canvasBase
()
->
resourceManager
()
->
setResource
(
KisCanvasResourceProvider
::
EffectiveZoom
,
effectiveZoom
);
}
void
KisZoomManager
::
updateMouseTrackingConnections
()
{
bool
value
=
m_horizontalRuler
->
isVisible
()
&&
...
...
@@ -329,7 +337,7 @@ void KisZoomManager::slotUpdateGuiAfterZoomChange()
QIcon
(),
500
,
KisFloatingMessage
::
Low
,
Qt
::
AlignCenter
);
}
updateCurrentZoomResource
();
m_view
->
canvasBase
()
->
resourceManager
()
->
setResource
(
KoCanvasResource
::
EffectiveZoom
,
effectiveZoom
);
}
...
...
libs/ui/kis_zoom_manager.h
View file @
f11a08cf
...
...
@@ -65,6 +65,7 @@ public:
}
void
updateImageBoundsSnapping
();
void
updateCurrentZoomResource
();
QWidget
*
zoomActionWidget
()
const
;
...
...
Halla Rempt
@rempt
mentioned in commit
864df28d
·
Sep 30, 2020
mentioned in commit
864df28d
mentioned in commit 864df28d30eec1e4a15378bbf432dce6475ecbfb
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment