-Simple null check that allows setting a default font for the text tool before the program loads.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1653 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
30248d4790
commit
81512c8cb7
|
@ -9540,7 +9540,7 @@ this.getFontFamily = function() {
|
|||
this.setFontFamily = function(val) {
|
||||
cur_text.font_family = val;
|
||||
changeSelectedAttribute("font-family", val);
|
||||
if(!selectedElements[0].textContent) {
|
||||
if(selectedElements[0] && !selectedElements[0].textContent) {
|
||||
textActions.setCursor();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue