-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-75d572ba1ddd
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user