From 51b899c859afdc3b0d7743e20b558bfc0e54c340 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Thu, 21 Apr 2011 20:04:14 +0200 Subject: Font Editor. Fix for Bug #706506 (Crash when kerning an empty pair). Fixed bugs: - https://launchpad.net/bugs/706506 (bzr r10189) --- src/ui/dialog/svg-fonts-dialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp index d836bfa22..667d01de7 100644 --- a/src/ui/dialog/svg-fonts-dialog.cpp +++ b/src/ui/dialog/svg-fonts-dialog.cpp @@ -162,7 +162,10 @@ void GlyphComboBox::update(SPFont* spfont){ } void SvgFontsDialog::on_kerning_value_changed(){ - if (!this->kerning_pair) return; + if (!get_selected_kerning_pair()) { + return; + } + SPDocument* document = sp_desktop_document(this->getDesktop()); //TODO: I am unsure whether this is the correct way of calling SPDocumentUndo::maybe_done -- cgit v1.2.3