-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
master
Jacob Brookover 2010-07-30 20:41:07 +00:00
parent 30248d4790
commit 81512c8cb7
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
};